From 2e15f2b6991e75c9aa3bfa99174bc3a537e22e20 Mon Sep 17 00:00:00 2001 From: vurtne14 Date: Fri, 24 Oct 2025 20:38:55 +0800 Subject: [PATCH] 1 --- Assets/ManagedResources/~Lua/Modules/Main/MainPanel.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Assets/ManagedResources/~Lua/Modules/Main/MainPanel.lua b/Assets/ManagedResources/~Lua/Modules/Main/MainPanel.lua index 70f9f447d..5c25a4f80 100644 --- a/Assets/ManagedResources/~Lua/Modules/Main/MainPanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/Main/MainPanel.lua @@ -3,6 +3,7 @@ MainPanel = Inherit(BasePanel) local this = MainPanel --local isPassChapter = {} -- local endTime = 0 +local upGradePackagePanel = 0 local GlobalActConfig = ConfigManager.GetConfig(ConfigName.GlobalActivity) -- local ActGroupsConfig = ConfigManager.GetConfig(ConfigName.ActivityGroups) -- local shopItemConfig = ConfigManager.GetConfig(ConfigName.StoreConfig) @@ -39,6 +40,7 @@ local CrossService = false --跨服天梯是否解锁 --初始化组件(用于子类重写) function this:InitComponent() orginLayer = 0 + upGradePackagePanel = PlayerPrefs.GetInt(PlayerManager.uid.."upGradePackagePanel",0) self.bg = Util.GetGameObject(self.gameObject, "bg") self.sceneTran = Util.GetGameObject(self.gameObject, "scene"):GetComponent("RectTransform") self.bgTran = Util.GetGameObject(self.gameObject, "bg"):GetComponent("RectTransform") @@ -1292,6 +1294,12 @@ function this.TimeFormat() activityTabs[k].go.gameObject:SetActive(false) else activityTabs[k].go.gameObject:SetActive(true) + LogError(""..tostring(math.ceil(GetTimeStamp() / 86400)).."/"..tostring(upGradePackagePanel)) + if upGradePackagePanel ~= math.ceil(GetTimeStamp() / 86400) then + upGradePackagePanel = math.ceil(GetTimeStamp() / 86400) + PlayerPrefs.SetInt(PlayerManager.uid.."upGradePackagePanel",upGradePackagePanel) + UIManager.OpenPanel(UIName.UpGradePackagePanel) + end activityTabs[k].timeText.text = TimeToHMS(time) end else