diff --git a/Assets/ManagedResources/~Lua/Modules/Arena/ArenaTypePanel.lua b/Assets/ManagedResources/~Lua/Modules/Arena/ArenaTypePanel.lua index df28abc81d..41c26a04ec 100644 --- a/Assets/ManagedResources/~Lua/Modules/Arena/ArenaTypePanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/Arena/ArenaTypePanel.lua @@ -254,36 +254,42 @@ function this.TimeUpdate() local isOpen = ActTimeCtrlManager.IsSwitchOpen(FUNCTION_OPEN_TYPE.JumpServer_HightLadder) if isOpen then - local isActive = ArenaTopMatchManager.IsTopMatchActive() - local startTime, endTime = ArenaTopMatchManager.GetTopMatchTime() - if isActive then - local leftTime = endTime - GetTimeStamp() - if leftTime <= 0 then - this.RefreshTopMatchShow() - end - this.TopMatch_SeasonTime.text = string.format(Language[10090], TimeToHMS(leftTime)) - else - if startTime then - local leftTime = startTime - GetTimeStamp() - if leftTime <= 0 then - this.RefreshTopMatchShow() - this.TopMatch_SeasonTime.text = "" - else - this.TopMatch_SeasonTime.text = string.format(Language[10091], TimeToHMS(leftTime)) - end - else - this.RefreshTopMatchShow() - this.TopMatch_SeasonTime.text = "" - end + -- local isActive = ArenaTopMatchManager.IsTopMatchActive() + -- local startTime, endTime = ArenaTopMatchManager.GetTopMatchTime() + -- if isActive then + -- local leftTime = endTime - GetTimeStamp() + -- if leftTime <= 0 then + -- this.RefreshTopMatchShow() + -- end + -- this.TopMatch_SeasonTime.text = string.format(Language[10090], TimeToHMS(leftTime)) + -- else + -- if startTime then + -- local leftTime = startTime - GetTimeStamp() + -- if leftTime <= 0 then + -- this.RefreshTopMatchShow() + -- this.TopMatch_SeasonTime.text = "" + -- else + -- this.TopMatch_SeasonTime.text = string.format(Language[10091], TimeToHMS(leftTime)) + -- end + -- else + -- this.RefreshTopMatchShow() + -- this.TopMatch_SeasonTime.text = "" + -- end + -- end + local leftTime=JumpServerManager.GetHightLadderDataEndTime() - GetTimeStamp() + if leftTime <= 0 then + this.RefreshTopMatchShow() end + this.TopMatch_SeasonTime.text = string.format(Language[10090], TimeToHMS(leftTime)) else - local startTime, endTime = ArenaTopMatchManager.GetTopMatchTime() - if startTime then - local leftTime = startTime - GetTimeStamp() - this.TopMatch_Lock_Time.text = string.format("(即将解锁:%s)", TimeToHMS(leftTime)) - else - this.TopMatch_Lock_Time.text = "" - end + -- local startTime, endTime = ArenaTopMatchManager.GetTopMatchTime() + -- if startTime then + -- local leftTime = startTime - GetTimeStamp() + -- this.TopMatch_Lock_Time.text = string.format("(即将解锁:%s)", TimeToHMS(leftTime)) + -- else + -- this.TopMatch_Lock_Time.text = "" + -- end + end end