钻石抽奖
This commit is contained in:
parent
55e6142f60
commit
1c6706d014
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue