【家园】特权剩余时间修改

dev_chengFeng
ZhangBiao 2022-01-11 13:29:58 +08:00
parent d0bdfb935c
commit e3c1c348e7
1 changed files with 2 additions and 2 deletions

View File

@ -71,12 +71,12 @@ function this:Refresh()
local leftTime = data.endTime - GetTimeStamp()
this.leftTime.text = string.format("剩余%s天",TimeToD(leftTime))
if leftTime <= 86400 then
this.leftTime.text = string.format("剩余:",TimeToFelaxible(leftTime))
this.leftTime.text = string.format("剩余:%s",TimeToFelaxible(leftTime))
end
this.timer = Timer.New(function ()
leftTime = leftTime - 1
if leftTime <= 86400 then
this.leftTime.text = string.format("剩余:",TimeToFelaxible(leftTime))
this.leftTime.text = string.format("剩余:%s",TimeToFelaxible(leftTime))
else
this.leftTime.text = string.format("剩余%s天",TimeToD(leftTime))
end