Browse Source

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

hexiaojie 6 months ago
parent
commit
107813fc9c
1 changed files with 11 additions and 2 deletions
  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)