删除测试代码

This commit is contained in:
by 2024-07-10 17:53:15 +08:00
parent f299b5ca13
commit 8f55c7cb3d
1 changed files with 11 additions and 12 deletions

View File

@ -226,7 +226,6 @@ 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)) {
@ -237,11 +236,11 @@ func (this *CSDiamondLotteryInfoHandler) Process(s *netlib.Session, packetid int
pack.LuckyScore = p.DiamondLotteryScore pack.LuckyScore = p.DiamondLotteryScore
info := WelfareMgrSington.GetConfig(p.Platform) info := WelfareMgrSington.GetConfig(p.Platform)
if info != nil && info.DiamondLotteryConfig != nil { if info != nil && info.DiamondLotteryConfig != nil {
for _, data := range info.DiamondLotteryConfig.LotteryData { for _, value := range info.DiamondLotteryConfig.LotteryData {
if data.Channel == p.Channel { if value.Channel == p.Channel {
pack.MaxScore = data.MaxScore pack.MaxScore = value.MaxScore
pack.DiamondNum = data.DiamondNum pack.DiamondNum = value.DiamondNum
for _, lotteryInfo := range data.Info { for _, lotteryInfo := range value.Info {
item := &player_proto.LotteryItem{ item := &player_proto.LotteryItem{
Id: lotteryInfo.Id, Id: lotteryInfo.Id,
ItemId: lotteryInfo.ItemId, ItemId: lotteryInfo.ItemId,
@ -294,9 +293,9 @@ func (this *CSDiamondLotteryHandler) Process(s *netlib.Session, packetid int, da
info := WelfareMgrSington.GetConfig(p.Platform) info := WelfareMgrSington.GetConfig(p.Platform)
var config *webapi.DiamondLotteryData var config *webapi.DiamondLotteryData
if info != nil && info.LotteryData != nil { if info != nil && info.LotteryData != nil {
for _, data := range info.LotteryData { for _, value := range info.LotteryData {
if data.Channel == p.Channel { if value.Channel == p.Channel {
config = data config = value
break break
} }
} }
@ -428,9 +427,9 @@ func (this *CSDiamondLotteryLuckyAwardHandler) Process(s *netlib.Session, packet
var config *webapi.DiamondLotteryData var config *webapi.DiamondLotteryData
if info != nil && info.LotteryData != nil { if info != nil && info.LotteryData != nil {
for _, data := range info.LotteryData { for _, value := range info.LotteryData {
if data.Channel == p.Channel { if value.Channel == p.Channel {
config = data config = value
break break
} }
} }