Răsfoiți Sursa

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

zhaoyang 3 ani în urmă
părinte
comite
bd19f837c1

+ 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)