소스 검색

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)