Compare commits

..

2 Commits

Author SHA1 Message Date
by 351d5979ba Merge branch 'develop' of https://git.pogorockgames.com/mango-games/server/game into develop 2024-07-10 16:34:40 +08:00
by 9636dccb99 钻石抽奖 2024-07-10 16:34:10 +08:00
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 {
//白名单从列表里获取奖励
id := rand.Intn(len(playerData.AwatdId)) + 1
id := rand.Intn(len(playerData.AwatdId))
awardId := playerData.AwatdId[id]
for _, lotteryInfo := range config.Info {
if lotteryInfo.Id == awardId {