|
|
@@ -88,7 +88,7 @@ func handleDouShenUserRegisterConsumeForOfficial(msgData []byte) error { |
|
|
|
return err |
|
|
|
} |
|
|
|
if officialGroup == nil { |
|
|
|
groupName := "官方[1]群" |
|
|
|
groupName := "官方【1】群" |
|
|
|
//3、创建群 |
|
|
|
resp, err := utils.GetLogicExtClient(cfg.ImLogicRpc.URL, cfg.ImLogicRpc.PORT).CreateGroup(utils.GetCtx("", strconv.FormatInt(gimUser.Id, 10), "0", msg.MasterId), &pb.CreateGroupReq{ |
|
|
|
Name: groupName, |
|
|
@@ -128,7 +128,8 @@ func handleDouShenUserRegisterConsumeForOfficial(msgData []byte) error { |
|
|
|
} |
|
|
|
//加入群 |
|
|
|
_, err = utils.GetLogicExtClient(cfg.ImLogicRpc.URL, cfg.ImLogicRpc.PORT).AddGroupMembers( |
|
|
|
utils.GetCtx("", strconv.FormatInt(userGroup.UserId, 10), "", msg.MasterId), &pb.AddGroupMembersReq{ |
|
|
|
utils.GetCtx("", strconv.FormatInt(userGroup.UserId, 10), "", msg.MasterId), |
|
|
|
&pb.AddGroupMembersReq{ |
|
|
|
GroupId: int64(officialGroup.GroupId), |
|
|
|
UserIds: []int64{gimUser.Id}, |
|
|
|
}) |
|
|
|