guodong 2 년 전
부모
커밋
5befa9f98c
2개의 변경된 파일7개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      GameClient/Assets/Game/HotUpdate/Platform/QDManager.cs
  2. 6 1
      GameClient/Assets/Game/HotUpdate/ServerProxy/ShopSProxy.cs

+ 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("虚拟充值成功");
                     }