From 8dc7c56dfd6685f1fec8afe53523b2ef2fb57e35 Mon Sep 17 00:00:00 2001 From: meixiongfeng <766881921@qq.com> Date: Wed, 12 Apr 2023 10:09:02 +0800 Subject: [PATCH] =?UTF-8?q?=E9=85=8D=E7=BD=AE=E5=8F=82=E6=95=B0=E6=A0=A1?= =?UTF-8?q?=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/comp_configure.go | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/modules/comp_configure.go b/modules/comp_configure.go index 96ab82203..ef8e0315e 100644 --- a/modules/comp_configure.go +++ b/modules/comp_configure.go @@ -83,8 +83,7 @@ func (this *MCompConfigure) Init(service core.IService, module core.IModule, com this.Stype = make(map[int64]int32, 0) this.SNum = make(map[int64]int32, 0) configure.RegisterConfigure(game_lottery, cfg.NewGameLottery, this.LoadGroupData) - _d := this.GetGroupData(40001001, 1, 1) - fmt.Printf("%v", _d) + return } @@ -137,6 +136,13 @@ func (this *MCompConfigure) LoadGroupData() { // 实际掉落逻辑 (传入 掉落组ID vip等级 玩家等级 返回获得的道具) func (this *MCompConfigure) GetGroupData(lotterId int32, vipLv int32, lv int32) (items []*cfg.Gameatn) { + + if _, ok := this._lotteryType1[lotterId]; !ok { + if _, ok := this._lotteryType2[lotterId]; !ok { + fmt.Printf("not found config lotterId:%d", lotterId) + return + } + } // 优先校验大组ID 的类型 if this.Btype[lotterId] == 1 { // 该大组中的小组为权重掉落,必定从N个小组中随机出1个小组 var (