mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-06 04:15:46 +08:00
入职流程
This commit is contained in:
parent
2e52867df4
commit
007065b40e
@ -174,7 +174,7 @@ func joinGroups(operationID, userID, userName string, groupIDList []string) {
|
|||||||
GroupID: groupID,
|
GroupID: groupID,
|
||||||
Reason: "register auto join",
|
Reason: "register auto join",
|
||||||
InvitedUserIDList: []string{userID},
|
InvitedUserIDList: []string{userID},
|
||||||
OpUserID: config.Config.Manager.AppManagerUid[0],
|
OpUserID: config.Config.Manager.AppManagerUid[1],
|
||||||
}
|
}
|
||||||
resp, err := client.InviteUserToGroup(context.Background(), req)
|
resp, err := client.InviteUserToGroup(context.Background(), req)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -36,7 +36,6 @@ func setOpUserInfo(opUserID, groupID string, groupMemberInfo *open_im_sdk.GroupM
|
|||||||
return utils.Wrap(err, "")
|
return utils.Wrap(err, "")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
user, err := imdb.GetUserByUserID(opUserID)
|
user, err := imdb.GetUserByUserID(opUserID)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return utils.Wrap(err, "")
|
return utils.Wrap(err, "")
|
||||||
@ -118,16 +117,13 @@ func groupNotification(contentType int32, m proto.Message, sendID, groupID, recv
|
|||||||
|
|
||||||
tips.JsonDetail, _ = marshaler.MarshalToString(m)
|
tips.JsonDetail, _ = marshaler.MarshalToString(m)
|
||||||
var nickname string
|
var nickname string
|
||||||
if utils.IsContain(sendID, config.Config.Manager.AppManagerUid) {
|
|
||||||
nickname = sendID
|
from, err := imdb.GetUserByUserID(sendID)
|
||||||
} else {
|
if err != nil {
|
||||||
from, err := imdb.GetUserByUserID(sendID)
|
log.Error(operationID, "GetUserByUserID failed ", err.Error(), sendID)
|
||||||
if err != nil {
|
}
|
||||||
log.Error(operationID, "GetUserByUserID failed ", err.Error(), sendID)
|
if from != nil {
|
||||||
}
|
nickname = from.Nickname
|
||||||
if from != nil {
|
|
||||||
nickname = from.Nickname
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
to, err := imdb.GetUserByUserID(recvUserID)
|
to, err := imdb.GetUserByUserID(recvUserID)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user