From 1c6706d014087dd80d931d99100c4256b4377910 Mon Sep 17 00:00:00 2001 From: by <123456@qq.com> Date: Wed, 10 Jul 2024 15:26:03 +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 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/worldsrv/action_phonelottery.go b/worldsrv/action_phonelottery.go index 258542e..9dc64ff 100644 --- a/worldsrv/action_phonelottery.go +++ b/worldsrv/action_phonelottery.go @@ -226,7 +226,7 @@ func (this *CSDiamondLotteryInfoHandler) Process(s *netlib.Session, packetid int logger.Logger.Warn("CSDiamondLotteryInfo p == nil") return nil } - + p.AddDiamond(1000, 0, common.GainWayDiamondLottery, "sys", "钻石抽奖") // 渠道开关 conf := PlatformMgrSingleton.GetConfig(p.Platform).ChannelSwitch[common.DiamondLottery] if !model.GameParamData.CloseChannelSwitch && (conf == nil || !common.InSliceString(conf.OnChannelName, p.LastChannel)) { @@ -293,7 +293,7 @@ func (this *CSDiamondLotteryHandler) Process(s *netlib.Session, packetid int, da logger.Logger.Tracef("玩家请求钻石抽奖,snid =%d,count = %d ", p.SnId, count) info := WelfareMgrSington.GetConfig(p.Platform) var config *webapi.DiamondLotteryData - if info == nil && info.DiamondLotteryConfig != nil { + if info != nil && info.LotteryData != nil { for _, data := range info.LotteryData { if data.Channel == p.Channel { config = data @@ -415,7 +415,7 @@ func (this *CSDiamondLotteryLuckyAwardHandler) Process(s *netlib.Session, packet info := WelfareMgrSington.GetConfig(p.Platform) var config *webapi.DiamondLotteryData - if info == nil && info.DiamondLotteryConfig != nil { + if info != nil && info.LotteryData != nil { for _, data := range info.LotteryData { if data.Channel == p.Channel { config = data