From 9636dccb99cb1899e2e1510223db7e2de5536b0b Mon Sep 17 00:00:00 2001 From: by <123456@qq.com> Date: Wed, 10 Jul 2024 16:34:10 +0800 Subject: [PATCH] =?UTF-8?q?=E9=92=BB=E7=9F=B3=E6=8A=BD=E5=A5=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- worldsrv/action_phonelottery.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worldsrv/action_phonelottery.go b/worldsrv/action_phonelottery.go index 9dc64ff..7e9dab9 100644 --- a/worldsrv/action_phonelottery.go +++ b/worldsrv/action_phonelottery.go @@ -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 {