【引导】没有引导的功能解锁时会导致报错

dev_chengFeng
gaoxin 2021-06-04 23:31:39 +08:00
parent 717994657e
commit 97cb753d4e
1 changed files with 5 additions and 2 deletions

View File

@ -71,13 +71,16 @@ function this.OnFunctionOpen(funcId)
end
--LogGreen(tostring(AppConst.isGuide))
local guideId = GlobalSystemConfig[funcId].GuideId
if GuideConfig[guideId].IsOpen > 0 then
if not guideId or guideId == 0 then
return
end
if GuideConfig[guideId] and GuideConfig[guideId].IsOpen > 0 then
if not ActivityGiftManager.IsActivityTypeOpen(ActivityGiftManager.GetActivityTypeFromId(GuideConfig[guideId].IsOpen)) then
Log("活动:"..tostring(GuideConfig[guideId].IsOpen).."未开启引导Id:"..guideId.."未执行!")
return
end
end
if guideId and guideId ~= 0 and not funcDic[guideId] then
if not funcDic[guideId] then
table.insert(_FuncGuideList, guideId)
end
--