From afcfa71db7c1698c59465034efb08a7772c16fc9 Mon Sep 17 00:00:00 2001 From: ZhangBiao Date: Tue, 30 Mar 2021 22:42:17 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E7=A6=8F=E6=98=9F=E9=AB=98=E7=85=A7?= =?UTF-8?q?=E3=80=91=E4=B8=8D=E5=85=B3=E9=97=AD=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../~Lua/Modules/Expert/PatFaceManager.lua | 16 +++++++++------- .../Modules/FuXingGaoZhao/FuXingGaoZhaoPanel.lua | 4 ++-- .../~Lua/Modules/Main/MainPanel.lua | 3 +++ 3 files changed, 14 insertions(+), 9 deletions(-) diff --git a/Assets/ManagedResources/~Lua/Modules/Expert/PatFaceManager.lua b/Assets/ManagedResources/~Lua/Modules/Expert/PatFaceManager.lua index 30a7608688..f14a95944d 100644 --- a/Assets/ManagedResources/~Lua/Modules/Expert/PatFaceManager.lua +++ b/Assets/ManagedResources/~Lua/Modules/Expert/PatFaceManager.lua @@ -223,13 +223,15 @@ function this.PatFaceSpecialMonitor(v,patFaceAllData,type,starUpGiftNum) table.insert(patFaceAllData,v) end end - -- elseif v.Type == 12 then--福星高照活动 - -- local ActData = ActivityGiftManager.GetActivityTypeInfo(ActivityTypeDef.FuXingGaoZhao) - -- if ActData then - -- if RedPointManager.PlayerPrefsGetStr(v.Id..PlayerManager.level.."TimeLimitSkin") == "0" then - -- table.insert(patFaceAllData,v) - -- end - -- end + elseif v.Type == 12 then--福星高照活动 + local ActData = ActivityGiftManager.GetActivityTypeInfo(ActivityTypeDef.FuXingGaoZhao) + local data = string.split(ConfigManager.GetConfigDataByKey(ConfigName.SpecialConfig,"Id",109).Value,"#") + local time = ActData.startTime + tonumber(data[1])*86400 - GetTimeStamp() + if time >0 then + if RedPointManager.PlayerPrefsGetStr(v.Id.."PatFace") == "0" then + table.insert(patFaceAllData,v) + end + end else if RedPointManager.PlayerPrefsGetStr(v.Id.."PatFace") == "0" then table.insert(patFaceAllData,v) diff --git a/Assets/ManagedResources/~Lua/Modules/FuXingGaoZhao/FuXingGaoZhaoPanel.lua b/Assets/ManagedResources/~Lua/Modules/FuXingGaoZhao/FuXingGaoZhaoPanel.lua index 9ed96d1515..a265bbe09c 100644 --- a/Assets/ManagedResources/~Lua/Modules/FuXingGaoZhao/FuXingGaoZhaoPanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/FuXingGaoZhao/FuXingGaoZhaoPanel.lua @@ -117,7 +117,7 @@ function FuXingGaoZhao:SetTime() self.timer = nil end local time = data.startTime + tonumber(timeData[1])*86400 - GetTimeStamp() - self.time.text = string.format("剩余接受时间:%s",TimeToFelaxible(time)) + self.time.text = string.format("剩余结束时间:%s",TimeToFelaxible(time)) self.timer = Timer.New(function() time = time - 1 if time < 1 then @@ -125,7 +125,7 @@ function FuXingGaoZhao:SetTime() self.timer = nil self:ClosePanel() end - self.time.text = string.format("剩余接受时间:%s",TimeToFelaxible(time)) + self.time.text = string.format("剩余结束时间:%s",TimeToFelaxible(time)) end, 1, -1, true) self.timer:Start() end diff --git a/Assets/ManagedResources/~Lua/Modules/Main/MainPanel.lua b/Assets/ManagedResources/~Lua/Modules/Main/MainPanel.lua index 4451ce6ad7..9d385e80dc 100644 --- a/Assets/ManagedResources/~Lua/Modules/Main/MainPanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/Main/MainPanel.lua @@ -1000,6 +1000,9 @@ function this.TimeFormat() local data = string.split(ConfigManager.GetConfigDataByKey(ConfigName.SpecialConfig,"Id",109).Value,"#") local time = ActData.startTime + tonumber(data[1])*86400 - GetTimeStamp() activityTabs[k].timeText.text = TimeToFelaxible(time) + if time <= 0 then + activityTabs[k].go.gameObject:SetActive(false) + end end else activityTabs[k].go.gameObject:SetActive(false)