【主界面按钮】兼容删除了的活动

dev_chengFeng
gaoxin 2021-11-24 11:43:46 +08:00
parent 2d25ebb61b
commit 86dff44ce7
1 changed files with 5 additions and 1 deletions

View File

@ -448,7 +448,11 @@ function this.GetActivityTypeFromId(activityId)
end
function this.IsActivityTypeOpen(type)
local globalActConfigs = ConfigManager.GetAllConfigsDataByKey(ConfigName.GlobalActivity, "Type", type)
local globalActConfigs = ConfigManager.TryGetAllConfigsDataByKey(ConfigName.GlobalActivity, "Type", type)
if not globalActConfigs or #globalActConfigs <= 0 then
LogError("未找到活动相关配置,类型:"..tostring(type))
return
end
local activityId = nil
table.walk(globalActConfigs, function(actConfigInfo)
if this.mission and this.mission[actConfigInfo.Id] then