From 50a0668278d0ca3c5e40bc5f8e38ab132f921423 Mon Sep 17 00:00:00 2001 From: wule Date: Thu, 22 Oct 2026 16:15:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=8D=E5=8A=A1=E5=99=A8=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AllBase/BaseClass.cs | 12 +++++++++++- Work/UserLogin.cs | 11 +++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/AllBase/BaseClass.cs b/AllBase/BaseClass.cs index d84013d..4425922 100644 --- a/AllBase/BaseClass.cs +++ b/AllBase/BaseClass.cs @@ -39,7 +39,17 @@ namespace AllBase public static int VersionCount = 352; - public static string ServerUrl { get; set; } = "http://1.13.195.131:9000"; + //public static string ServerUrl { get; set; } = "http://1.13.195.131:9000"; + public static string ServerUrl + { + get + { + var url = "http://1.13.195.131:9000"; + //if (Randomx.GetId(3) < 2) + // url = "http://119.45.29.75:9000"; + return url; + } + } public static string DebugUrl { get; set; } = "http://localhost:9000"; diff --git a/Work/UserLogin.cs b/Work/UserLogin.cs index a3f6c1e..66218a9 100644 --- a/Work/UserLogin.cs +++ b/Work/UserLogin.cs @@ -144,6 +144,17 @@ namespace Work BaseClass.OemId = BaseRegex.GetStringJson(ref html, "oem_id"); BaseClass.OemName = BaseRegex.GetStringJson(ref html, "oem_name"); BaseClass.IsOemOwner = BaseRegex.GetBoolJson(ref html, "is_oem_owner"); +#if DEBUG + if (!string.IsNullOrEmpty(BaseRegex.GetStringJson(ref html, "order_api_url")) && !BaseClass.LoginApiUrl.Contains("localhost")) + { + BaseClass.LoginApiUrl = BaseRegex.GetStringJson(ref html, "order_api_url").Split(';').FirstOrDefault(); + } +#else + if (!string.IsNullOrEmpty(BaseRegex.GetStringJson(ref html, "order_api_url"))) + { + BaseClass.LoginApiUrl = BaseRegex.GetStringJson(ref html, "order_api_url").Split(';').FirstOrDefault(); + } +#endif if (BaseClass.GroupId != 3 && BaseClass.GroupId != 4 && BaseClass.GroupId != 9 && BaseClass.GroupId != 10 && BaseClass.GroupId != 11) {