对充值活动进行关闭

dev_chengFeng
jiaoyangna 2022-03-23 23:47:46 +08:00 committed by JieLing
parent 954ee0079f
commit ef74528bc7
2 changed files with 6 additions and 0 deletions

View File

@ -67,6 +67,9 @@ function ActivityMainPanel:CheckActOpen(_index)
_index = i
end
end
if tabs[_index].IsRecharge == 1 and (not RECHARGEABLE) then
return
end
if tabs[_index].IfBack == 1 then
if tabs[_index].ActiveType > 0 then
local id = ActivityGiftManager.IsActivityTypeOpen(tabs[_index].ActiveType)

View File

@ -621,6 +621,9 @@ function this.IsQualifiled(id)
if not openRule or #openRule < 1 then
return true
end
if data.IsRecharge == 1 and (not RECHARGEABLE) then
return false
end
if openRule[1] == 1 then -- 关卡开启
qualifiled = FightPointPassManager.IsFightPointPass(openRule[2])
elseif openRule[1] == 2 then -- 等级开启