Browse Source

update

master
DengBiao 1 year ago
parent
commit
ff42cfe782
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      internal/logic/app/group_app.go

+ 4
- 1
internal/logic/app/group_app.go View File

@@ -250,7 +250,10 @@ func (*groupApp) SetGroupMemberRemoveBanned(ctx context.Context, optId, groupId
}

if len(removeUserIds) > 0 {
//给取消禁言用户推送消息
//1、更新 `group_user` 的 status 状态
db.DB.Model(model.GroupUser{}).Where("user_id in (?) and group_id = ?", removeUserIds, groupId).Updates(model.GroupUserV2{Status: sql.NullInt32{Int32: int32(pb.GroupUserStatusType_GROUP_USER_STATUS_NORMAL), Valid: true}})

//2、给取消禁言用户推送消息
for _, u := range removeUserIds {
err = group.PushGroupMemberRemoveBanned(ctx, optId, u)
if err != nil {


Loading…
Cancel
Save