商店添加容错
parent
e34092f93d
commit
89b5eae8ec
|
@ -69,8 +69,13 @@ function this.ReceiveShopData(msg)
|
|||
-- 保存数据
|
||||
this.allShopData = {}
|
||||
for _, data in ipairs(msg.storeInfo) do
|
||||
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
|
||||
-- 刷新物品排序
|
||||
this.SortItemList()
|
||||
-- 检测商店刷新时间
|
||||
|
|
Loading…
Reference in New Issue