소스 검색

Merge remote-tracking branch 'remotes/origin/master' into ios_test

hexiaojie 1 년 전
부모
커밋
d861da5330
1개의 변경된 파일9개의 추가작업 그리고 1개의 파일을 삭제
  1. 9 1
      GameClient/Assets/Game/HotUpdate/Views/Store/ItemExchangeView.cs

+ 9 - 1
GameClient/Assets/Game/HotUpdate/Views/Store/ItemExchangeView.cs

@@ -169,7 +169,15 @@ namespace GFGGame
             {
                 _ui.m_comCost.target.visible = true;
                 _ui.m_txtRmbCost.visible = false;
-                ItemUtil.UpdateItemNeedNum(_ui.m_comCost.target, _shopCfg.CostIdReal, (int)_buyCount * _shopCfg.Price);
+                if(_shopCfg.menu1 == 5)
+                {
+                    ItemCfg costItemCfg = ItemCfgArray.Instance.GetCfg(_shopCfg.menu2 == 0 || _shopCfg.menu2 == ArenaDataManager.Instance.SeasonId ? _shopCfg.CostIdReal : _shopCfg.oldSeasonCostId);
+                    ItemUtil.UpdateItemNeedNum(_ui.m_comCost.target, costItemCfg.id, (int)_buyCount * _shopCfg.Price);
+                }
+                else
+                {
+                    ItemUtil.UpdateItemNeedNum(_ui.m_comCost.target, _shopCfg.CostIdReal, (int)_buyCount * _shopCfg.Price);
+                }
             }
         }