From 5d03b4fea814f0d894b374fbe8684ec7c74c2c71 Mon Sep 17 00:00:00 2001 From: gaoxin Date: Fri, 28 Aug 2020 01:24:32 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=85=E5=B3=B0=E8=B5=9B=E6=8C=89=E9=92=AE?= =?UTF-8?q?=E5=BD=93=E6=97=A5=E4=BA=94=E7=82=B9=E5=BC=80=E5=A7=8B=E6=98=BE?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/ManagedResources/~Lua/Modules/Main/MainPanel.lua | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Assets/ManagedResources/~Lua/Modules/Main/MainPanel.lua b/Assets/ManagedResources/~Lua/Modules/Main/MainPanel.lua index dd6894d638..4e6eeb7c9e 100644 --- a/Assets/ManagedResources/~Lua/Modules/Main/MainPanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/Main/MainPanel.lua @@ -1408,10 +1408,15 @@ function this.TimeFormat() if not isOpen or not baseInfo or not baseInfo.battleStage or baseInfo.battleStage == TOP_MATCH_STAGE.OVER then SetTopMatchActive(false) elseif baseInfo.battleStage == TOP_MATCH_STAGE.CLOSE then - SetTopMatchActive(true) local startTime = ArenaTopMatchManager.GetTopMatchTime() local tempTime = startTime - PlayerManager.serverTime - this.topMatchTime.text = "距开始\n"..TimeToHMS(tempTime) + -- 当日五点开始显示 + if tempTime < 16 * 60 * 60 then + SetTopMatchActive(true) + this.topMatchTime.text = "距开始\n"..TimeToHMS(tempTime) + else + SetTopMatchActive(false) + end else SetTopMatchActive(true) this.topMatchTime.text = "鏖战中"