diff --git a/worldsrv/action_phonelottery.go b/worldsrv/action_phonelottery.go index 2b0bdf4..4b7c8dd 100644 --- a/worldsrv/action_phonelottery.go +++ b/worldsrv/action_phonelottery.go @@ -237,7 +237,7 @@ func (this *CSDiamondLotteryInfoHandler) Process(s *netlib.Session, packetid int info := WelfareMgrSington.GetConfig(p.Platform) if info != nil && info.DiamondLotteryConfig != nil { for _, value := range info.DiamondLotteryConfig.LotteryData { - if value.Channel == p.Channel { + if value.Channel == p.LastChannel { pack.MaxScore = value.MaxScore pack.DiamondNum = value.DiamondNum for _, lotteryInfo := range value.Info { @@ -294,13 +294,13 @@ func (this *CSDiamondLotteryHandler) Process(s *netlib.Session, packetid int, da var config *webapi.DiamondLotteryData if info != nil && info.LotteryData != nil { for _, value := range info.LotteryData { - if value.Channel == p.Channel { + if value.Channel == p.LastChannel { config = value break } } if config == nil { - logger.Logger.Error("钻石抽奖,未找到配置!p.Channel = ", p.Channel) + logger.Logger.Error("钻石抽奖,未找到配置!p.LastChannel = ", p.LastChannel) return nil } //判断钻石数量 @@ -443,13 +443,13 @@ func (this *CSDiamondLotteryLuckyAwardHandler) Process(s *netlib.Session, packet var config *webapi.DiamondLotteryData if info != nil && info.LotteryData != nil { for _, value := range info.LotteryData { - if value.Channel == p.Channel { + if value.Channel == p.LastChannel { config = value break } } if config == nil { - logger.Logger.Error("钻石抽奖,未找到配置!p.Channel = ", p.Channel) + logger.Logger.Error("钻石抽奖,未找到配置!p.LastChannel = ", p.LastChannel) return nil } if p.DiamondLotteryScore < int64(config.MaxScore) {