From b695224100cf34f583685f57f002ca919ee68dab Mon Sep 17 00:00:00 2001 From: ZhangBiao Date: Tue, 27 Apr 2021 20:18:18 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E5=95=86=E5=BA=97=E5=88=B7=E6=96=B0?= =?UTF-8?q?=E3=80=91=E5=95=86=E5=BA=97=E5=88=B7=E6=96=B0=E6=97=B6=E9=97=B4?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ManagedResources/~Lua/Modules/Shop/ShopManager.lua | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Assets/ManagedResources/~Lua/Modules/Shop/ShopManager.lua b/Assets/ManagedResources/~Lua/Modules/Shop/ShopManager.lua index 3d2871371c..22200acf35 100644 --- a/Assets/ManagedResources/~Lua/Modules/Shop/ShopManager.lua +++ b/Assets/ManagedResources/~Lua/Modules/Shop/ShopManager.lua @@ -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 --- 获取刷新剩余时间