【商店刷新】商店刷新时间错误

dev_chengFeng
ZhangBiao 2021-04-27 20:18:18 +08:00
parent a69e92bc75
commit b695224100
1 changed files with 6 additions and 4 deletions

View File

@ -735,10 +735,12 @@ function this.CountShopRefreshLeftTime(shopId)
--- 按时间长度刷新
elseif shopInfo.RefreshType[1] == 3 then
local shopData = this.GetShopDataByType(shopType)
local lastRefreshTime = shopData.lastRefreshTime / 1000
local deltaSeconds = shopInfo.RefreshType[2] * 60 * 60
local lastTime = lastRefreshTime + deltaSeconds - GetTimeStamp()
return lastTime < 0 and 0 or lastTime
-- local lastRefreshTime = shopData.lastRefreshTime / 1000
-- local deltaSeconds = shopInfo.RefreshType[2] * 60 * 60
-- local lastTime = lastRefreshTime + deltaSeconds - GetTimeStamp()
-- return lastTime < 0 and 0 or lastTime
-- LogPink("shopData.endTime:"..tostring(shopData.endTime))
return shopData.endTime/1000 - GetTimeStamp()
end
end
--- 获取刷新剩余时间