引导修改提交

tcx_xiyou_dev
PC-202302260912\Administrator 2024-05-11 15:35:07 +08:00
parent 4c7089c1ca
commit 091ff94a43
1 changed files with 9 additions and 2 deletions

View File

@ -53,7 +53,7 @@ function this.CheckFuncActiveByType(activeType, params)
local isActive = this.SingleFuncState(typeId)
--Log("检测功能是否已解锁id = "..id..", isActive = "..tostring(isActive))
local aGuideId = AllActSetConfig[typeId].GuideId
if AllActSetConfig[aGuideId] and AllActSetConfig[aGuideId].IsOpen and AllActSetConfig[aGuideId].IsOpen> 0 then
if AllActSetConfig[aGuideId] and AllActSetConfig[aGuideId].IsOpen and AllActSetConfig[aGuideId].IsOpen> 0 then
if ActivityGiftManager.IsActivityTypeOpen(ActivityGiftManager.GetActivityTypeFromId(GuideConfig[aGuideId].IsOpen)) then
table.insert(ids,typeId)
end
@ -66,7 +66,14 @@ function this.CheckFuncActiveByType(activeType, params)
--Log(">>>>>>功能关闭id = "..funcInfo.Id..", name = "..funcInfo.Name)
-- 已解锁但是判断未解锁
--Game.GlobalEvent:DispatchEvent(GameEvent.FunctionCtrl.OnFunctionClose, typeId)
table.insert(ids,typeId)
if activeType==2 then
if CheckFunctionOpen(typeId) then
table.insert(ids,typeId)
end
else
table.insert(ids,typeId)
end
end
-- 保存状态
funcData.isActive = isActive