Browse Source

update

master
dengbiao 1 week ago
parent
commit
70cf69c4c5
1 changed files with 11 additions and 0 deletions
  1. +11
    -0
      internal/logic/domain/group/model/group.go

+ 11
- 0
internal/logic/domain/group/model/group.go View File

@@ -454,9 +454,20 @@ func (g *Group) PushAddMember(ctx context.Context, optUserId int64, addedIds []i
//
optUser := usersResp.Users[optUserId]
if optUserId == -1 {
if optUser == nil {
optUser = &pb.User{
UserId: optUserId,
}
optUser = &pb.User{}
}
optUser.Nickname = "后台操作"
}
if optUserId == -2 {
if optUser == nil {
optUser = &pb.User{
UserId: optUserId,
}
}
optUser.Nickname = "扫码加入"
}
err = g.PushMessage(ctx, pb.PushCode_PC_ADD_GROUP_MEMBERS, &pb.AddGroupMembersPush{


Loading…
Cancel
Save