商店添加容错
parent
e34092f93d
commit
89b5eae8ec
|
@ -69,7 +69,12 @@ function this.ReceiveShopData(msg)
|
||||||
-- 保存数据
|
-- 保存数据
|
||||||
this.allShopData = {}
|
this.allShopData = {}
|
||||||
for _, data in ipairs(msg.storeInfo) do
|
for _, data in ipairs(msg.storeInfo) do
|
||||||
table.insert(this.allShopData, data)
|
local storeInfo = ConfigManager.TryGetConfigData(ConfigName.StoreTypeConfig, data.id)
|
||||||
|
if not storeInfo then
|
||||||
|
LogError("StoreTypeConfig not find Id:"..data.id)
|
||||||
|
else
|
||||||
|
table.insert(this.allShopData, data)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
-- 刷新物品排序
|
-- 刷新物品排序
|
||||||
this.SortItemList()
|
this.SortItemList()
|
||||||
|
|
Loading…
Reference in New Issue