钻石抽奖

This commit is contained in:
by 2024-07-10 15:26:03 +08:00
parent 55e6142f60
commit 1c6706d014
1 changed files with 3 additions and 3 deletions

View File

@ -226,7 +226,7 @@ func (this *CSDiamondLotteryInfoHandler) Process(s *netlib.Session, packetid int
logger.Logger.Warn("CSDiamondLotteryInfo p == nil") logger.Logger.Warn("CSDiamondLotteryInfo p == nil")
return nil return nil
} }
p.AddDiamond(1000, 0, common.GainWayDiamondLottery, "sys", "钻石抽奖")
// 渠道开关 // 渠道开关
conf := PlatformMgrSingleton.GetConfig(p.Platform).ChannelSwitch[common.DiamondLottery] conf := PlatformMgrSingleton.GetConfig(p.Platform).ChannelSwitch[common.DiamondLottery]
if !model.GameParamData.CloseChannelSwitch && (conf == nil || !common.InSliceString(conf.OnChannelName, p.LastChannel)) { 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) logger.Logger.Tracef("玩家请求钻石抽奖snid =%d,count = %d ", p.SnId, count)
info := WelfareMgrSington.GetConfig(p.Platform) info := WelfareMgrSington.GetConfig(p.Platform)
var config *webapi.DiamondLotteryData var config *webapi.DiamondLotteryData
if info == nil && info.DiamondLotteryConfig != nil { if info != nil && info.LotteryData != nil {
for _, data := range info.LotteryData { for _, data := range info.LotteryData {
if data.Channel == p.Channel { if data.Channel == p.Channel {
config = data config = data
@ -415,7 +415,7 @@ func (this *CSDiamondLotteryLuckyAwardHandler) Process(s *netlib.Session, packet
info := WelfareMgrSington.GetConfig(p.Platform) info := WelfareMgrSington.GetConfig(p.Platform)
var config *webapi.DiamondLotteryData var config *webapi.DiamondLotteryData
if info == nil && info.DiamondLotteryConfig != nil { if info != nil && info.LotteryData != nil {
for _, data := range info.LotteryData { for _, data := range info.LotteryData {
if data.Channel == p.Channel { if data.Channel == p.Channel {
config = data config = data