diff --git a/Assets/ManagedResources/~Lua/Modules/Pay/PayManager.lua b/Assets/ManagedResources/~Lua/Modules/Pay/PayManager.lua index 2bd749894d..ee3a8cd36e 100644 --- a/Assets/ManagedResources/~Lua/Modules/Pay/PayManager.lua +++ b/Assets/ManagedResources/~Lua/Modules/Pay/PayManager.lua @@ -65,7 +65,7 @@ function this.Pay(id, func) local rechargeConfig = ConfigManager.GetConfigData(ConfigName.RechargeCommodityConfig, id) local yhqNum=BagManager.GetItemCountById(108) - if yhqNum>=rechargeConfig.Price then + if yhqNum>=rechargeConfig.Price and rechargeConfig.Price>0 then local sureFunc=function() NetManager.SendYHQBuyGoodRequest(id) end