瀏覽代碼

商城充值显示文字修改

huangxiaoyue 1 年之前
父節點
當前提交
c3edc51cde
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      GameClient/Assets/Game/HotUpdate/Views/Store/StoreChargeView.cs

+ 2 - 1
GameClient/Assets/Game/HotUpdate/Views/Store/StoreChargeView.cs

@@ -95,9 +95,10 @@ namespace GFGGame
                 item.target.onClick.Add(OnClickBtnBuy);
             }
             item.target.data = index;
+            ItemCfg itemIdCfg = ItemCfgArray.Instance.GetCfg(shopCfg.itemId);
             ItemCfg doubleItem = ItemCfgArray.Instance.GetCfg(shopCfg.doubleItemId);
 
-            item.m_txtName.text = string.Format("{0}{1}", shopCfg.itemNum, doubleItem.name);
+            item.m_txtName.text = string.Format("{0}{1}", shopCfg.itemNum, itemIdCfg.name);
             item.m_txtDesc.text = string.Format("首充赠送+{0}{1}", shopCfg.itemNum, doubleItem.name);
             bool isDouble = ShopDataManager.Instance.GetGoodsBuyNumById(shopCfg.id) < shopCfg.doubleTimes;
             item.m_grpDouble.visible = isDouble;