钻石抽奖

This commit is contained in:
by 2024-07-10 16:34:10 +08:00
parent 1c6706d014
commit 9636dccb99
1 changed files with 1 additions and 1 deletions

View File

@ -339,7 +339,7 @@ func (this *CSDiamondLotteryHandler) Process(s *netlib.Session, packetid int, da
} }
if status { if status {
//白名单从列表里获取奖励 //白名单从列表里获取奖励
id := rand.Intn(len(playerData.AwatdId)) + 1 id := rand.Intn(len(playerData.AwatdId))
awardId := playerData.AwatdId[id] awardId := playerData.AwatdId[id]
for _, lotteryInfo := range config.Info { for _, lotteryInfo := range config.Info {
if lotteryInfo.Id == awardId { if lotteryInfo.Id == awardId {