From a9d77de2b264d2f43d708693368a06556d622f7f Mon Sep 17 00:00:00 2001 From: zhangqiang <657634622@qq.com> Date: Tue, 6 Apr 2021 11:38:25 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E5=8D=81=E7=BB=9D=E9=98=B5=E3=80=91?= =?UTF-8?q?=E6=9C=AA=E4=BA=A7=E7=94=9F=E5=AE=9D=E7=AE=B1=E6=97=B6=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E7=9A=84=E9=A2=86=E5=8F=96=E6=88=AA=E6=AD=A2=E6=97=B6?= =?UTF-8?q?=E9=97=B4=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/ManagedResources/~Lua/Common/functions.lua | 5 ++++- .../~Lua/Modules/Guild/DeathPos/DeathPosPanel.lua | 3 ++- .../~Lua/Modules/Guild/DeathPos/DeathPosRewardPopup.lua | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Assets/ManagedResources/~Lua/Common/functions.lua b/Assets/ManagedResources/~Lua/Common/functions.lua index 363f499788..748fcb2e8f 100644 --- a/Assets/ManagedResources/~Lua/Common/functions.lua +++ b/Assets/ManagedResources/~Lua/Common/functions.lua @@ -236,7 +236,10 @@ end function GetTimeMaoHaoStrBySeconds(_seconds) return os.date("%M:%S", _seconds) end - +--秒转换成文字对应时间只有月日时 +function GetTimeMonthDayMinBySeconds(_seconds) + return os.date("%m月%d日%H时", _seconds) +end function PrintTable(root) local cache = { [root] = "." } local function _dump(t, space, name) diff --git a/Assets/ManagedResources/~Lua/Modules/Guild/DeathPos/DeathPosPanel.lua b/Assets/ManagedResources/~Lua/Modules/Guild/DeathPos/DeathPosPanel.lua index 4c44af02d1..68a747399e 100644 --- a/Assets/ManagedResources/~Lua/Modules/Guild/DeathPos/DeathPosPanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/Guild/DeathPos/DeathPosPanel.lua @@ -140,7 +140,8 @@ function this.RefreshPanel() else this.TimeCountDown(msg.overTime) end - DeathPosManager.rewardTimeTip=Language[11031]..TimeStampToDateStr(GetTimeStamp()+(msg.overTime-GetTimeStamp()))..Language[11032] + + DeathPosManager.rewardTimeTip= Language[11031]..GetTimeMonthDayMinBySeconds(msg.overTime)..Language[11032] DeathPosManager.battleTime=DeathPosManager.maxBattleTime-msg.challengeCount this.battleTime.text=Language[10520].. DeathPosManager.battleTime DeathPosManager.SetGuildInfoData(msg.infos) diff --git a/Assets/ManagedResources/~Lua/Modules/Guild/DeathPos/DeathPosRewardPopup.lua b/Assets/ManagedResources/~Lua/Modules/Guild/DeathPos/DeathPosRewardPopup.lua index 1121561fc0..146ba13385 100644 --- a/Assets/ManagedResources/~Lua/Modules/Guild/DeathPos/DeathPosRewardPopup.lua +++ b/Assets/ManagedResources/~Lua/Modules/Guild/DeathPos/DeathPosRewardPopup.lua @@ -41,7 +41,7 @@ function DeathPosRewardPopup:RemoveListener() Game.GlobalEvent:RemoveEvent(GameEvent.Guild.RefreshDeathPosReward, this.SetIndicationData) end function DeathPosRewardPopup:OnOpen(...) - + this.SetIndicationData() end function DeathPosRewardPopup:OnShow()