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 (