From d47ee74e2cf8250f9663c44eb4973c2cb88b68d7 Mon Sep 17 00:00:00 2001 From: sk <123456@qq.com> Date: Fri, 3 Jan 2025 10:46:05 +0800 Subject: [PATCH] =?UTF-8?q?modify=20=E5=88=A0=E9=99=A4=E7=BA=A2=E5=8C=85?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- worldsrv/etcd.go | 151 ----------------------------------------------- 1 file changed, 151 deletions(-) diff --git a/worldsrv/etcd.go b/worldsrv/etcd.go index c488bbf..4bd8f42 100644 --- a/worldsrv/etcd.go +++ b/worldsrv/etcd.go @@ -117,157 +117,6 @@ func init() { etcd.Register(etcd.KeyRedPacket, webapi.RedPacketConfig{}, platformConfigEvent) // 累计消耗活动配置 etcd.Register(etcd.KeyActConsume, webapi.ConsumeConfig{}, platformConfigEvent) - - WelfareMgrSington.UpdateRedPacket(&webapi.RedPacketConfig{ - Platform: "1", - List: []*webapi.RedPacketInfo{ - { - Id: 1, - On: 1, - StartHMS: 90000, - EndHMS: 100000, - StayTs: 0, - MaxCount: 100, - LessCount: 5, - ItemId: 100001, - TotalNum: 100000, - RedList: []*webapi.RedInfo{ - { - Num: 1, - Rate: 50, - }, - { - Num: 10, - Rate: 10, - }, - { - Num: 20, - Rate: 10, - }, - { - Num: 30, - Rate: 10, - }, - }, - }, - { - Id: 2, - On: 1, - StartHMS: 100000, - EndHMS: 120000, - StayTs: 30, - MaxCount: 10000, - LessCount: 5, - ItemId: 100001, - TotalNum: 100000, - RedList: []*webapi.RedInfo{ - { - Num: 1, - Rate: 50, - }, - { - Num: 10, - Rate: 10, - }, - { - Num: 20, - Rate: 10, - }, - { - Num: 30, - Rate: 10, - }, - }, - }, - { - Id: 3, - On: 1, - StartHMS: 120000, - EndHMS: 150000, - StayTs: 0, - MaxCount: 10000, - LessCount: 5, - ItemId: 100001, - TotalNum: 100000, - RedList: []*webapi.RedInfo{ - { - Num: 1, - Rate: 50, - }, - { - Num: 10, - Rate: 10, - }, - { - Num: 20, - Rate: 10, - }, - { - Num: 30, - Rate: 10, - }, - }, - }, - { - Id: 4, - On: 1, - StartHMS: 150000, - EndHMS: 160000, - StayTs: 0, - MaxCount: 10000, - LessCount: 5, - ItemId: 100001, - TotalNum: 100000, - RedList: []*webapi.RedInfo{ - { - Num: 1, - Rate: 50, - }, - { - Num: 10, - Rate: 10, - }, - { - Num: 20, - Rate: 10, - }, - { - Num: 30, - Rate: 10, - }, - }, - }, - { - Id: 5, - On: 1, - StartHMS: 160000, - EndHMS: 180000, - StayTs: 0, - MaxCount: 10000, - LessCount: 5, - ItemId: 100001, - TotalNum: 100000, - RedList: []*webapi.RedInfo{ - { - Num: 1, - Rate: 50, - }, - { - Num: 10, - Rate: 10, - }, - { - Num: 20, - Rate: 10, - }, - { - Num: 30, - Rate: 10, - }, - }, - }, - }, - }, false) } func platformConfigEvent(ctx context.Context, completeKey string, isInit bool, event *clientv3.Event, data interface{}) {