From bf4ada883468b316aeee97cc911377bbfb24b621 Mon Sep 17 00:00:00 2001 From: hujiebin Date: Thu, 18 May 2023 14:20:36 +0800 Subject: [PATCH] =?UTF-8?q?Aoxi=E8=A6=81=E6=B1=82=E4=B8=8D=E8=83=BD?= =?UTF-8?q?=E8=AE=A9=E8=BF=99=E4=BA=9B=E4=BA=BA=E5=8A=A0=E5=85=A5=E5=AE=B6?= =?UTF-8?q?=E6=97=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- route/group_power_r/group_power.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/route/group_power_r/group_power.go b/route/group_power_r/group_power.go index a2381dc..3ec8e3c 100644 --- a/route/group_power_r/group_power.go +++ b/route/group_power_r/group_power.go @@ -978,8 +978,11 @@ func GroupPowerApplyJoin(c *gin.Context) (*mycontext.MyContext, error) { return myContext, myerr.WrapErr(err) } // Aoxi要求不能让这些人加入家族 - banUserMap := map[uint64]bool{251: true, 1384611: true, 4223511: true, 4338751: true, 4339471: true, 4339541: true, - 4354581: true, 6541: true, 23971: true} + var banUserIds = []uint64{251, 1384611, 4223511, 4338751, 4339471, 4339541, 4354581, 6541, 23971, 5191971, 5192161, 5192201, 5429011, 5429121, 5429191, 5687371, 6160461, 6185321, 6194741, 6315381} + var banUserMap = make(map[uint64]bool) + for _, id := range banUserIds { + banUserMap[id] = true + } if _, ok := banUserMap[userId]; ok { return myContext, bizerr.GroupPowerCannotJoin } -- 2.22.0