【无尽副本】体力刷新倒计时结束后,页面计时显示不重置,退出重进显示正常

dev_chengFeng
jiaoyangna 2021-05-28 14:45:42 +08:00
parent 86e49bb7c0
commit edd52b5eaa
1 changed files with 3 additions and 0 deletions

View File

@ -205,6 +205,9 @@ function this.ShowCountTime()
-- 启动倒计时
this.timer = Timer.New(function ()
local leftTime = AutoRecoverManager.GetRecoverTime(1)
if leftTime < 0 then
leftTime = 0
end
this.actCountTime.text = GetTimeMaoHaoStrBySeconds(math.floor(leftTime)).."后恢复1点"
end, 1, -1, true)
this.timer:Start()