From 51096fa627fd1a412ffb22324dead39afe91327b Mon Sep 17 00:00:00 2001 From: DengBiao <2319963317@qq.com> Date: Sun, 23 Apr 2023 21:17:18 +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 534b371..adc41b7 100644 --- a/internal/logic/app/group_app.go +++ b/internal/logic/app/group_app.go @@ -278,7 +278,13 @@ func (*groupApp) SetGroupMemberBanned(ctx context.Context, optId, groupId int64, db.DB.Model(model.GroupUser{}).Where("(user_id) not in (?) and group_id = ?", userIds, groupId).Updates(model.GroupUserV2{Status: sql.NullInt32{Int32: int32(pb.GroupUserStatusType_GROUP_USER_STATUS_NORMAL), Valid: true}}) } - //3、发送推送消息 + //3、删除缓存 + err := repo.GroupCache.Del(groupId) + if err != nil { + return nil, err + } + + //4、发送推送消息 for _, u := range userIds { err = group.PushGroupMemberBanned(ctx, optId, u, isAllMemberBanned) if err != nil {