From b030f5ace8c1ccf52c0487a5cb4925e75932e2fc Mon Sep 17 00:00:00 2001 From: chenweijian <820961417@qq.com> Date: Thu, 10 Aug 2023 15:24:16 +0800 Subject: [PATCH] =?UTF-8?q?=E5=91=A8=E6=89=B6=E6=8C=81=E7=89=B9=E6=AE=8A?= =?UTF-8?q?=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- domain/service/group_s/group_support.go | 30 +++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/domain/service/group_s/group_support.go b/domain/service/group_s/group_support.go index fe63bd1..50b12bd 100644 --- a/domain/service/group_s/group_support.go +++ b/domain/service/group_s/group_support.go @@ -113,6 +113,36 @@ func (s *GroupService) GetSupportLevel(groupId string) (uint64, uint32, error) { if err != nil { return 0, 0, err } + if time.Now().Unix() >= 1691942400 && time.Now().Unix() < 1692547200 { // 因为这周水果机被部分人刷币,所以这里做了特殊的处理 + reduceMap := map[string]uint64{ + "HTGS#a63226380": 20000000, + "HTGS#a42641278": 10000000, + "@TGS#3ZZ5GZLHA": 27141539, + "HTGS#a81630128": 8955410, + "HTGS#a42300598": 50211301, + "HTGS#a40088696": 10000000, + "HTGS#a21700997": 14352310, + "HTGS#a83608384": 49644203, + "@TGS#33GDXTSIH": 50000000, + "HTGS#a50538513": 15000000, + "HTGS#a77282385": 15000000, + "HTGS#a59437326": 10000000, + "HTGS#a16909405": 10000000, + "HTGS#a44104431": 16861206, + "HTGS#a56794634": 59591313, + "HTGS#a11286025": 31232311, + "HTGS#a17238550": 52309338, + "HTGS#a83592361": 79545067, + "HTGS#a39882521": 10255093, + } + if reduceNum, ok := reduceMap[groupId]; ok { + if consume >= reduceNum { + consume -= reduceNum + } else { + consume = 0 + } + } + } rec, err := res_m.GetResGroupSupportBy(model, count, consume) if err != nil { -- 2.22.0