diff --git a/Assets/ManagedResources/~Lua/Modules/Shop/ShopManager.lua b/Assets/ManagedResources/~Lua/Modules/Shop/ShopManager.lua index 66222662fc..062a3260f0 100644 --- a/Assets/ManagedResources/~Lua/Modules/Shop/ShopManager.lua +++ b/Assets/ManagedResources/~Lua/Modules/Shop/ShopManager.lua @@ -119,7 +119,12 @@ function this.UpdateShopData(msg) if _index then this.allShopData[_index] = newdata else - table.insert(this.allShopData, newdata) + local storeInfo = ConfigManager.TryGetConfigData(ConfigName.StoreTypeConfig, newdata.id) + if not storeInfo then + LogError("StoreTypeConfig not find Id:"..newdata.id) + else + table.insert(this.allShopData, newdata) + end end -- 刷新商店红点