diff --git a/modules/tools/comp_configure.go b/modules/tools/comp_configure.go index 8b28f5b06..65a7aef2c 100644 --- a/modules/tools/comp_configure.go +++ b/modules/tools/comp_configure.go @@ -262,7 +262,7 @@ func (this *MCompConfigure) GetGroupDataByLottery(lotteryId int32, vipLv int32, sztW = append(sztW, _data.Itemwt) sztID = append(sztID, _data) } - if len(sztW) > 0 { + if len(sztW) == 0 { continue } _data := sztID[comm.GetRandW(sztW)]