2023-07-15 02:35:33 +07:00
|
|
|
local XRedPointConditionActivityFestival = {}
|
|
|
|
|
|
|
|
function XRedPointConditionActivityFestival.Check(sectionId)
|
2024-09-01 22:49:41 +02:00
|
|
|
-- 节日Id是否在开放时间内
|
2023-07-15 02:35:33 +07:00
|
|
|
if not XDataCenter.FubenFestivalActivityManager.IsFestivalInActivity(sectionId) then
|
|
|
|
return false
|
|
|
|
end
|
2024-09-01 22:49:41 +02:00
|
|
|
-- 功能是否开启
|
2023-07-15 02:35:33 +07:00
|
|
|
local sectionCfg = XFestivalActivityConfig.GetFestivalById(sectionId)
|
|
|
|
if sectionCfg.FunctionOpenId > 0 then
|
|
|
|
if not XFunctionManager.JudgeCanOpen(sectionCfg.FunctionOpenId) then
|
2024-09-01 22:49:41 +02:00
|
|
|
return false
|
2023-07-15 02:35:33 +07:00
|
|
|
end
|
|
|
|
end
|
2024-09-01 22:49:41 +02:00
|
|
|
if XDataCenter.FubenFestivalActivityManager.CheckFestivalRedPoint(sectionId) then
|
|
|
|
return true
|
2023-07-15 02:35:33 +07:00
|
|
|
end
|
|
|
|
|
|
|
|
return false
|
|
|
|
end
|
|
|
|
|
|
|
|
return XRedPointConditionActivityFestival
|