Compare commits

..

No commits in common. "71622caf8fc3482e073a33b875d07f4ad27cabcd" and "2e16b0bd5205560f9f80ecb31286148308ed19f6" have entirely different histories.

3 changed files with 6 additions and 30 deletions

View File

@ -779,10 +779,6 @@ const (
ChannelSwitchInvite = 3 // 邀请开关
ChannelSwitchPermit = 4 // 典藏通行证开关
ChannelSwitchDiamondLottery = 5 // 钻石抽奖开关
ChannelSwitchItemRecExpire = 8 // 记牌器开关
ChannelSwitchPigBankCoin = 13 // 金币存钱罐开关
ChannelSwitchPigBankDiamond = 14 // 钻石存钱罐开关
)
// 特殊商品id

View File

@ -1243,11 +1243,6 @@ func (this *Player) UpdatePigBankCoin(gainTexCoin int64) {
return
}
// 渠道开关
if !ConfigMgrInst.IsOn(this.Platform, common.ChannelSwitchPigBankCoin, this.LastChannel) {
return
}
if this.PlayerData.WelfData == nil || this.PlayerData.WelfData.PigBank == nil {
return
}

View File

@ -1686,9 +1686,6 @@ func (this *WelfareMgr) BuyContinuousPay(p *Player, ConfigPayId int32) {
// PigbankGetInfo 存钱罐信息
func (this *WelfareMgr) PigbankGetInfo(p *Player) {
if !PlatformMgrSingleton.IsOn(p.Platform, common.ChannelSwitchPigBankCoin, p.LastChannel) {
return
}
pack := &welfare.SCPigbankGetInfo{
OpRetCode: welfare.OpResultCode_OPRC_Error,
}
@ -1778,10 +1775,6 @@ func (this *WelfareMgr) PigbankGetInfo(p *Player) {
// PigbankTakeCoin 存钱罐领取金币
func (this *WelfareMgr) PigbankTakeCoin(p *Player) {
if !PlatformMgrSingleton.IsOn(p.Platform, common.ChannelSwitchPigBankCoin, p.LastChannel) {
return
}
pack := &welfare.SCPigbankTakeCoin{
OpRetCode: welfare.OpResultCode_OPRC_Error,
}
@ -1941,10 +1934,6 @@ func (this *WelfareMgr) DayResetPigBank(p *Player) {
// 钻石储存罐信息
func (this *WelfareMgr) DiamondBankGetInfo(p *Player) {
if !PlatformMgrSingleton.IsOn(p.Platform, common.ChannelSwitchPigBankDiamond, p.LastChannel) {
return
}
pack := &welfare.SCDiamondBankGetInfo{
OpRetCode: welfare.OpResultCode_OPRC_Error,
}
@ -2012,10 +2001,6 @@ func (this *WelfareMgr) DiamondBankGetInfo(p *Player) {
// DiamondBankTakeCoin 钻石存钱罐领取钻石
func (this *WelfareMgr) DiamondBankTakeCoin(p *Player) (retItemArr []*model.Item) {
if !PlatformMgrSingleton.IsOn(p.Platform, common.ChannelSwitchPigBankDiamond, p.LastChannel) {
return
}
pack := &welfare.SCDiamondBankTakeDiamond{
OpRetCode: welfare.OpResultCode_OPRC_Error,
}