From c40be4411d291ee6a968630a829c5147eab1b43f Mon Sep 17 00:00:00 2001 From: ZhangBiao Date: Mon, 10 Jan 2022 18:22:20 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E5=AE=B6=E5=9B=AD=E3=80=91=E7=89=B9?= =?UTF-8?q?=E6=9D=83=E6=97=B6=E9=97=B4=E6=98=BE=E7=A4=BA=E8=B7=B3=E5=B8=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../View2/GeneralInfoPopup_HomeLandPrivilege.lua | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Assets/ManagedResources/~Lua/Modules/GeneralPanel/View2/GeneralInfoPopup_HomeLandPrivilege.lua b/Assets/ManagedResources/~Lua/Modules/GeneralPanel/View2/GeneralInfoPopup_HomeLandPrivilege.lua index b79b26816d..75f368df00 100644 --- a/Assets/ManagedResources/~Lua/Modules/GeneralPanel/View2/GeneralInfoPopup_HomeLandPrivilege.lua +++ b/Assets/ManagedResources/~Lua/Modules/GeneralPanel/View2/GeneralInfoPopup_HomeLandPrivilege.lua @@ -70,9 +70,16 @@ function this:Refresh() end local leftTime = data.endTime - GetTimeStamp() this.leftTime.text = string.format("剩余%s天",TimeToD(leftTime)) + if leftTime <= 86400 then + this.leftTime.text = string.format("剩余:",TimeToFelaxible(leftTime)) + end this.timer = Timer.New(function () leftTime = leftTime - 1 - this.leftTime.text = string.format("剩余%s天",TimeToD(leftTime)) + if leftTime <= 86400 then + this.leftTime.text = string.format("剩余:",TimeToFelaxible(leftTime)) + else + this.leftTime.text = string.format("剩余%s天",TimeToD(leftTime)) + end end,1,-1) this.timer:Start() end