SK_LongZhu
DESKTOP-MMO982B\User 2025-07-03 19:10:25 +08:00
parent 5f2e5d1ccd
commit 4e0709d7c3
1 changed files with 1 additions and 1 deletions

View File

@ -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 and rechargeConfig.Price>0 then
if rechargeConfig.OtherBuy and #rechargeConfig.OtherBuy > 0 and rechargeConfig.OtherBuy[1][2] <= yhqNum then
local sureFunc=function()
NetManager.SendYHQBuyGoodRequest(id)
end