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{