From 51b0f6ed9f4e1d3bb6f8144470b46908c7699a96 Mon Sep 17 00:00:00 2001
From: yyl <yyl>
Date: 星期一, 11 五月 2026 16:20:37 +0800
Subject: [PATCH] Merge branch 'master' into h5version

---
 Main/System/PlayerProfile/ExchangeCodeWin.cs |   15 +++++++++++----
 1 files changed, 11 insertions(+), 4 deletions(-)

diff --git a/Main/System/PlayerProfile/ExchangeCodeWin.cs b/Main/System/PlayerProfile/ExchangeCodeWin.cs
index 1de11e7..7704e6f 100644
--- a/Main/System/PlayerProfile/ExchangeCodeWin.cs
+++ b/Main/System/PlayerProfile/ExchangeCodeWin.cs
@@ -6,7 +6,14 @@
 {
     [SerializeField] InputField input;
     [SerializeField] Button receiveBtn;
-    const string exchangeUrl = "http://xssgcenter.secondworld.net.cn:53003/Coupon/CouponCode.php?";
+    // const string exchangeUrl = "http://gamecenter.secondworld.net.cn:53003/Coupon/CouponCode.php?";
+
+#if TEST_URL
+    const string exchangeUrl = "http://gamecenter.secondworld.net.cn:53003/center/CouponCode.php/?";
+#else
+    const string exchangeUrl = "http://xssgcenter.secondworld.net.cn:53003/center/CouponCode.php/?";
+#endif
+
     bool isCool = false;
     float time = 0;
 
@@ -61,7 +68,7 @@
         {
             isCool = true;
             var tables = new Dictionary<string, string>();
-            tables["channel"] = VersionConfig.Get().appId;
+            tables["channel"] = VersionConfig.config.appId;
             tables["code"] = passward;
 #if UNITY_EDITOR
             tables["accid"] = LoginManager.Instance.accountBuf;
@@ -71,11 +78,11 @@
 #endif
             tables["sid"] = ServerListCenter.Instance.currentServer.region_flag.ToString();
             tables["pushurl"] = ServerListCenter.Instance.currentServer.region_domain;
-            tables["spid"] = VersionConfig.Get().SpID;
+            tables["spid"] = VersionConfig.config.SpID;
             tables["roleid"] = UIHelper.ServerStringTrim(PlayerDatas.Instance.baseData.PlayerName);
             tables["level"] = PlayerDatas.Instance.baseData.LV.ToString();
             tables["viplevel"] = PlayerDatas.Instance.baseData.VIPLv.ToString();
-            HttpRequest.Instance.RequestHttpGet(StringUtility.Contact(exchangeUrl, HttpRequest.HashtablaToString(tables)), HttpRequest.defaultHttpContentType, 1, null);
+            HttpRequest.Instance.RequestHttpGet(StringUtility.Concat(exchangeUrl, HttpRequest.HashtablaToString(tables)), HttpRequest.defaultHttpContentType, 1, null);
         }
         // if (passward.Length > 1)
         // {

--
Gitblit v1.8.0