瀏覽代碼

Merge remote-tracking branch 'remotes/org/master' into xiaojie

hexiaojie 6 月之前
父節點
當前提交
107813fc9c
共有 1 個文件被更改,包括 11 次插入2 次删除
  1. 11 2
      GameClient/Assets/Game/HotUpdate/Data/ShopViewManager.cs

+ 11 - 2
GameClient/Assets/Game/HotUpdate/Data/ShopViewManager.cs

@@ -74,8 +74,17 @@ namespace GFGGame
 
             ItemCfg itemCfg = ItemCfgArray.Instance.GetCfg(shopCfg.itemId);
 
-            item.m_txtName.text = shopCfg.itemName;
-            item.m_icon.url = ResPathUtil.GetIconPath(itemCfg);
+            try
+            {
+                item.m_txtName.text = shopCfg.itemName;
+                item.m_icon.url = ResPathUtil.GetIconPath(itemCfg);
+            }
+            catch (Exception e)
+            {
+                Console.WriteLine(e);
+                throw;
+            }
+            
 
             item.m_grpDiscount.visible = shopCfg.Price < shopCfg.originalPrice;
             if (item.m_grpDiscount.visible)