From fca615e299c6a6ec0fd0b589f2b302a2bf54c72b Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期五, 22 八月 2025 19:44:33 +0800
Subject: [PATCH] 153 【武将】招募系统 - 积分招募

---
 Main/SDK/SDKUtils.cs |   88 ++++++++++++++++++++++----------------------
 1 files changed, 44 insertions(+), 44 deletions(-)

diff --git a/Main/SDK/SDKUtils.cs b/Main/SDK/SDKUtils.cs
index 5de29d2..80c40dd 100644
--- a/Main/SDK/SDKUtils.cs
+++ b/Main/SDK/SDKUtils.cs
@@ -374,7 +374,7 @@
         var _result = "default";
         switch (Application.platform)
         {
-            case RuntimePlatform.Android:
+            case RuntimePlatform.Android:
                 _result = "android";
                 break;
             case RuntimePlatform.IPhonePlayer:
@@ -955,53 +955,53 @@
     public void FreePlatformPay(string title, float money, string cpInfo)
     {
         // 鎻愮ず鏄惁浣跨敤浠i噾鍒�
-        // var gameCash = UIHelper.GetAllVourcher();
+        var gameCash = UIHelper.GetAllVourcher();
 
-        // bool isBuyGameCash = false; //浠i噾鍒告湰韬殑鍏呭�间笉鑳界敤浠i噾鍒歌喘涔� 閫犳垚寰幆
-        // int ctgID = ModelCenter.Instance.GetModel<VipModel>().orderInfoToCTGID[cpInfo];
-        // if (ctgID != 0)
-        // {
-        //     isBuyGameCash = CTGConfig.Get(ctgID).PayType == 17;
-        // }
+        bool isBuyGameCash = false; //浠i噾鍒告湰韬殑鍏呭�间笉鑳界敤浠i噾鍒歌喘涔� 閫犳垚寰幆
+        int ctgID = RechargeManager.Instance.orderInfoToCTGID[cpInfo];
+        if (ctgID != 0)
+        {
+            isBuyGameCash = CTGConfig.Get(ctgID).PayType == 17;
+        }
 
 
-        // if (!isBuyGameCash && gameCash >= money * 100 && !LoginAwardModel.rechargeLimit.Contains(ctgID))
-        // {
+        if (!isBuyGameCash && gameCash >= money * 100)
+        {
 
-        //     WindowCenter.Instance.Close<GotoChargeWin>();
-        //     if (DayRemind.Instance.GetDayRemind(DayRemind.DJQTip))
-        //     {
-        //         var pack = new CA125_tagCMCoinBuyOrderInfo();
-        //         pack.AppID = VersionConfig.Get().appId;
-        //         pack.AppIDLen = (byte)pack.AppID.Length;
-        //         pack.OrderInfo = cpInfo;
-        //         pack.OrderInfoLen = (byte)pack.OrderInfo.Length;
-        //         GameNetSystem.Instance.SendInfo(pack);
-        //     }
-        //     else
-        //     {
-        //         ConfirmCancel.ToggleConfirmCancel(Language.Get("Mail101"), Language.Get("GameCashRule1", money), Language.Get("TodayNoNotify"), (bool isOk, bool isToggle) =>
-        //         {
-        //             if (isOk)
-        //             {
-        //                 var pack = new CA125_tagCMCoinBuyOrderInfo();
-        //                 pack.AppID = VersionConfig.Get().appId;
-        //                 pack.AppIDLen = (byte)pack.AppID.Length;
-        //                 pack.OrderInfo = cpInfo;
-        //                 pack.OrderInfoLen = (byte)pack.OrderInfo.Length;
-        //                 GameNetSystem.Instance.SendInfo(pack);
-        //             }
-        //             if (isToggle)
-        //             {
-        //                 DayRemind.Instance.SetDayRemind(DayRemind.DJQTip, true);
-        //             }
-        //         });
-        //     }
-        // }
-        // else
-        // { 
-        //     FreePlatformPayEx(title, money, cpInfo);
-        // }
+            UIManager.Instance.CloseWindow<GotoChargeWin>();
+            if (DayRemind.Instance.GetDayRemind(DayRemind.DJQTip))
+            {
+                var pack = new CA125_tagCMCoinBuyOrderInfo();
+                pack.AppID = VersionConfig.Get().appId;
+                pack.AppIDLen = (byte)pack.AppID.Length;
+                pack.OrderInfo = cpInfo;
+                pack.OrderInfoLen = (byte)pack.OrderInfo.Length;
+                GameNetSystem.Instance.SendInfo(pack);
+            }
+            else
+            {
+                ConfirmCancel.ToggleConfirmCancel(Language.Get("Mail101"), Language.Get("GameCashRule1", money), Language.Get("TodayNoNotify"), (bool isOk, bool isToggle) =>
+                {
+                    if (isOk)
+                    {
+                        var pack = new CA125_tagCMCoinBuyOrderInfo();
+                        pack.AppID = VersionConfig.Get().appId;
+                        pack.AppIDLen = (byte)pack.AppID.Length;
+                        pack.OrderInfo = cpInfo;
+                        pack.OrderInfoLen = (byte)pack.OrderInfo.Length;
+                        GameNetSystem.Instance.SendInfo(pack);
+                    }
+                    if (isToggle)
+                    {
+                        DayRemind.Instance.SetDayRemind(DayRemind.DJQTip, true);
+                    }
+                });
+            }
+        }
+        else
+        { 
+            FreePlatformPayEx(title, money, cpInfo);
+        }
     }
 
     public void FreePlatformPayEx(string title, float money, string cpInfo)

--
Gitblit v1.8.0