diff --git a/Assets/ManagedResources/~Lua/Modules/Shop/ShopManager.lua b/Assets/ManagedResources/~Lua/Modules/Shop/ShopManager.lua index 835be02970..3d2871371c 100644 --- a/Assets/ManagedResources/~Lua/Modules/Shop/ShopManager.lua +++ b/Assets/ManagedResources/~Lua/Modules/Shop/ShopManager.lua @@ -1018,9 +1018,20 @@ function this.ShopRefreshRPIsShow(shopType) if not this.IsActive(shopType) then return false end + --新加判断 + local isAutoRecover, leftCount = this.IsAutoRecoverCount(shopType) + local shopInfo = this.GetShopInfoByType(shopType) + -- 计算剩余免费次数 + if isAutoRecover and shopInfo then + local maxTime = shopInfo.IfManualRefresh[1] + if leftCount >= maxTime then + return true + end + end + return false -- 商店剩余刷新次数 - local leftRefreshCount = this.GetShopLeftRefreshCount(shopType) - return leftRefreshCount > 0 + -- local leftRefreshCount = this.GetShopLeftRefreshCount(shopType) + -- return leftRefreshCount > 0 end