diff --git a/Assets/ManagedResources/~Lua/View/ShopView.lua b/Assets/ManagedResources/~Lua/View/ShopView.lua index 90a7810b5c..f976726ab8 100644 --- a/Assets/ManagedResources/~Lua/View/ShopView.lua +++ b/Assets/ManagedResources/~Lua/View/ShopView.lua @@ -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