浏览代码

商城礼包:免费礼包直接购买,不弹购买弹窗

zhaoyang 3 年之前
父节点
当前提交
bd19f837c1
共有 1 个文件被更改,包括 8 次插入1 次删除
  1. 8 1
      GameClient/Assets/Game/HotUpdate/Views/RechargeStore/RechargeStoreView.cs

+ 8 - 1
GameClient/Assets/Game/HotUpdate/Views/RechargeStore/RechargeStoreView.cs

@@ -210,7 +210,14 @@ namespace GFGGame
                 PromptController.Instance.ShowFloatTextPrompt("已售罄");
                 return;
             }
-            ViewManager.Show<GiftBagBuyView>(btn.data);
+            if (cfg.price == 0 || cfg.costType == CostType.FREE)
+            {
+                RechargeSProxy.ReqBuyGiftBag((int)btn.data).Coroutine();
+            }
+            else
+            {
+                ViewManager.Show<GiftBagBuyView>(btn.data);
+            }
         }
 
         private void ListExchangeItemRenderer(int index, GObject obj)