【周卡】数据不存在时不再显示周卡页签
parent
ee463b3103
commit
7f3d044ec3
|
@ -273,7 +273,8 @@ function this.SingleFuncState(id)
|
||||||
local qualifiled = this.IsQualifiled(id)
|
local qualifiled = this.IsQualifiled(id)
|
||||||
local isOpen = this.IsSwitchOpen(id)
|
local isOpen = this.IsSwitchOpen(id)
|
||||||
local isActive = this.FuncTimeJudge(id)
|
local isActive = this.FuncTimeJudge(id)
|
||||||
if isOpen and qualifiled and isActive then
|
local isSpecialActive = this.IsSpecialActive(id)
|
||||||
|
if isOpen and qualifiled and isActive and isSpecialActive then
|
||||||
isOpen = true
|
isOpen = true
|
||||||
else
|
else
|
||||||
isOpen = false
|
isOpen = false
|
||||||
|
@ -555,4 +556,13 @@ function this.SystemOpenTip(type)
|
||||||
return str
|
return str
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- 一些功能特殊判断
|
||||||
|
function this.IsSpecialActive(id)
|
||||||
|
if id == FUNCTION_OPEN_TYPE.WEEK_CARD then
|
||||||
|
return WeekCardManager.IsWeekCardOpen()
|
||||||
|
end
|
||||||
|
return true
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
return this
|
return this
|
|
@ -92,3 +92,12 @@ function this.CheckRedReward()
|
||||||
end
|
end
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- 根据是否有周卡数据,判断周卡功能是否开启
|
||||||
|
function this.IsWeekCardOpen()
|
||||||
|
local list = this.GetWeekCardDataArray()
|
||||||
|
if list and #list > 0 then
|
||||||
|
return true
|
||||||
|
end
|
||||||
|
return false
|
||||||
|
end
|
Loading…
Reference in New Issue