From 15e3b6c2e6926a50754b6d02eb17704d3baab123 Mon Sep 17 00:00:00 2001 From: DengBiao <2319963317@qq.com> Date: Mon, 24 Apr 2023 11:28:38 +0800 Subject: [PATCH] update --- internal/logic/app/group_app.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/internal/logic/app/group_app.go b/internal/logic/app/group_app.go index f0d9994..61a067a 100644 --- a/internal/logic/app/group_app.go +++ b/internal/logic/app/group_app.go @@ -325,7 +325,13 @@ func (*groupApp) SetGroupMemberRemoveBanned(ctx context.Context, optId, groupId //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、给取消禁言用户推送消息 + //2、删除缓存 + err := repo.GroupCache.Del(groupId) + if err != nil { + return err + } + + //3、给取消禁言用户推送消息 for _, u := range removeUserIds { err = group.PushGroupMemberRemoveBanned(ctx, optId, u) if err != nil {