添加配置参数

CloseChannelSwitch 关闭渠道开关功能
This commit is contained in:
sk 2024-05-10 17:10:45 +08:00
parent 81f0d0fe43
commit 0d81105909
2 changed files with 2 additions and 1 deletions

View File

@ -2122,7 +2122,7 @@ func (this *Scene) TryBillExGameDrop(p *Player) {
// 渠道开关
conf := ConfigMgrInst.GetConfig(p.Platform).ChannelSwitch[common.ChannelSwitchDropItem]
if conf == nil || !common.InSliceString(conf.OnChannelName, p.AppChannel) {
if !model.GameParamData.CloseChannelSwitch && (conf == nil || !common.InSliceString(conf.OnChannelName, p.AppChannel)) {
return
}

View File

@ -87,6 +87,7 @@ type GameParam struct {
RankInviteMaxNum int32 // 邀请排行榜最大人数
TestActSwitch bool // 开启所有活动开关
RankPlayerLevelMaxNum int //等级榜最大人数
CloseChannelSwitch bool //关闭渠道开关功能
}
var GameParamPath = "../data/gameparam.json"