Browse Source

update

three
DengBiao 1 year ago
parent
commit
9e3372878d
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      consume/dou_shen_user_register_for_my_my_recommender.go

+ 4
- 0
consume/dou_shen_user_register_for_my_my_recommender.go View File

@@ -142,6 +142,10 @@ func handleDouShenUserRegisterConsumeForMyRecommender(msgData []byte) error {
"key": "phone_number", "key": "phone_number",
"value": recommenderUser.Phone, "value": recommenderUser.Phone,
}) })
if recommenderGimUser == nil {
return errors.New("当前推荐人信息有误,请联系管理员!!!")
}

groupName := "我的粉丝【" + utils2.AnyToString(len(*fansGroups)+1) + "】群" groupName := "我的粉丝【" + utils2.AnyToString(len(*fansGroups)+1) + "】群"
//3、创建群 //3、创建群
resp, err := utils.GetLogicExtClient(cfg.ImLogicRpc.URL, cfg.ImLogicRpc.PORT).CreateGroup(utils.GetCtx("", strconv.FormatInt(recommenderGimUser.Id, 10), "0", msg.MasterId), &pb.CreateGroupReq{ resp, err := utils.GetLogicExtClient(cfg.ImLogicRpc.URL, cfg.ImLogicRpc.PORT).CreateGroup(utils.GetCtx("", strconv.FormatInt(recommenderGimUser.Id, 10), "0", msg.MasterId), &pb.CreateGroupReq{


Loading…
Cancel
Save