Compare commits
2 Commits
d0f388e46b
...
351d5979ba
Author | SHA1 | Date |
---|---|---|
|
351d5979ba | |
|
9636dccb99 |
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue