This commit is contained in:
liwei1dao 2023-10-08 18:40:22 +08:00
commit 64c2205875

View File

@ -262,7 +262,7 @@ func (this *MCompConfigure) GetGroupDataByLottery(lotteryId int32, vipLv int32,
sztW = append(sztW, _data.Itemwt) sztW = append(sztW, _data.Itemwt)
sztID = append(sztID, _data) sztID = append(sztID, _data)
} }
if len(sztW) > 0 { if len(sztW) == 0 {
continue continue
} }
_data := sztID[comm.GetRandW(sztW)] _data := sztID[comm.GetRandW(sztW)]