魂印商店刷新修改

dev_chengFeng
jiaoyangna 2021-10-28 18:06:26 +08:00
parent feb859b9a6
commit 5abf6060d2
1 changed files with 1 additions and 3 deletions

View File

@ -118,11 +118,9 @@ function this:BindEvent()
local isShow = false
for k,v in pairs(itemlist) do
local goods = ShopManager.GetShopItemGoodsInfo(v.id)
local itemInfo = ShopManager.GetShopItemInfo(v.id)
local maxLimitCount = ShopManager.GetShopItemLimitBuyCount(v.id)
local curBuyCount = itemInfo.buyNum
local con = ConfigManager.GetConfigData(ConfigName.ItemConfig,goods[1][1])
if con.Quantity >= 6 and curBuyCount < maxLimitCount then
if con.Quantity >= 6 and v.buyNum < maxLimitCount then
isShow = true
end
end