guodong 2 жил өмнө
parent
commit
5befa9f98c

+ 1 - 1
GameClient/Assets/Game/HotUpdate/Platform/QDManager.cs

@@ -63,7 +63,7 @@
             }
         }
 
-        public static void Pay(int buyID, int count)
+        public static void Pay(int buyID, int count, string orderID)
         {
             switch (LauncherConfig.ChannelId)
             {

+ 6 - 1
GameClient/Assets/Game/HotUpdate/ServerProxy/ShopSProxy.cs

@@ -33,8 +33,13 @@ namespace GFGGame
                     ShopDataManager.Instance.UpdateGoodsData(response.BuyId, response.TotalTimes);
                     ShopCfg shopCfg = ShopCfgArray.Instance.GetCfg(response.BuyId);
                     ItemCfg itemCfg = ItemCfgArray.Instance.GetCfg(shopCfg.itemId);
-                    if (LauncherConfig.netType == LauncherConfig.EnumNetType.LOCAL && shopCfg.costType == CostType.RMB)
+                    if (shopCfg.costType == CostType.RMB)
                     {
+                        if(LauncherConfig.ChannelId != ChannelID.Test)
+                        {
+                            QDManager.Pay(response.BuyId, response.Times, response.OrderId);
+                            return true;
+                        }
                         PromptController.Instance.ShowFloatTextPrompt("虚拟充值成功");
                     }