diff --git a/Assets/ManagedResources/~Lua/Modules/DynamicActivity/ActivityMainPanel.lua b/Assets/ManagedResources/~Lua/Modules/DynamicActivity/ActivityMainPanel.lua index 694864d937..95fdbc7fc9 100644 --- a/Assets/ManagedResources/~Lua/Modules/DynamicActivity/ActivityMainPanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/DynamicActivity/ActivityMainPanel.lua @@ -273,7 +273,7 @@ function this.OnPageTabChange(index) end if subViewList[index] and subViewList[index].config and subViewList[index].sub then --每日每周任务页签拆分用 - if tabs[index].ShopData[1][1] == -9999 then + if tabs[index].ShopData and tabs[index].ShopData[1][1] == -9999 then CommonActPageManager.DynamicActType = tabs[index].ActId end subViewList[index].sub:OnShow(orginLayer) @@ -284,7 +284,7 @@ function this.OnPageTabChange(index) subViewList[index].config = SubUIConfig[tabs[index].UIName[1]] subViewList[index].sub = SubUIManager.Open(subViewList[index].config,this.content.transform,tabs[index],index,this) --每日每周任务页签拆分用 - if tabs[index].ShopData[1][1] == -9999 then + if tabs[index].ShopData and tabs[index].ShopData[1][1] == -9999 then CommonActPageManager.DynamicActType = tabs[index].ActId end subViewList[index].sub:OnShow(orginLayer) diff --git a/Assets/ManagedResources/~Lua/Modules/NewActivity/CommonActPage.lua b/Assets/ManagedResources/~Lua/Modules/NewActivity/CommonActPage.lua index 389d02ebf0..3c17e00c44 100644 --- a/Assets/ManagedResources/~Lua/Modules/NewActivity/CommonActPage.lua +++ b/Assets/ManagedResources/~Lua/Modules/NewActivity/CommonActPage.lua @@ -77,7 +77,7 @@ function CommonActPage:OnShow(_sortingOrder) self.actId = self.actConfig.ActId self.actType = self.actConfig.ActiveType --每日每周任务页签拆分用 - if self.actConfig.ShopData[1][1] == -9999 then + if self.actConfig.ShopData and self.actConfig.ShopData[1][1] == -9999 then self.actType = 20000 end if self.actConfig.IfBack == 1 then