From 9e3372878dbd9c574f87199c8d6b418dd25e4ea1 Mon Sep 17 00:00:00 2001 From: DengBiao <2319963317@qq.com> Date: Fri, 16 Jun 2023 11:15:18 +0800 Subject: [PATCH] update --- consume/dou_shen_user_register_for_my_my_recommender.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/consume/dou_shen_user_register_for_my_my_recommender.go b/consume/dou_shen_user_register_for_my_my_recommender.go index 7359455..952663f 100644 --- a/consume/dou_shen_user_register_for_my_my_recommender.go +++ b/consume/dou_shen_user_register_for_my_my_recommender.go @@ -142,6 +142,10 @@ func handleDouShenUserRegisterConsumeForMyRecommender(msgData []byte) error { "key": "phone_number", "value": recommenderUser.Phone, }) + if recommenderGimUser == nil { + return errors.New("当前推荐人信息有误,请联系管理员!!!") + } + groupName := "我的粉丝【" + utils2.AnyToString(len(*fansGroups)+1) + "】群" //3、创建群 resp, err := utils.GetLogicExtClient(cfg.ImLogicRpc.URL, cfg.ImLogicRpc.PORT).CreateGroup(utils.GetCtx("", strconv.FormatInt(recommenderGimUser.Id, 10), "0", msg.MasterId), &pb.CreateGroupReq{