From 91d1c3df155358c0a547020d7e4fd3bb95ba9ad3 Mon Sep 17 00:00:00 2001 From: wule Date: Thu, 22 Oct 2026 20:10:39 +0800 Subject: [PATCH] =?UTF-8?q?=E7=99=BB=E5=BD=95=E6=97=B6=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E6=9C=8D=E5=8A=A1=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AllBase/BaseClass.cs | 4 ++-- Work/UserLogin.cs | 11 +++++++++++ 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/AllBase/BaseClass.cs b/AllBase/BaseClass.cs index 62e0165..2268f08 100644 --- a/AllBase/BaseClass.cs +++ b/AllBase/BaseClass.cs @@ -104,8 +104,8 @@ namespace AllBase public static string OriginUrl = "http://mobile.yangkeduo.com"; public static string NewUrl = "https://yangkeduo.com"; //public static string ServerUrl = "http://localhost:9000"; - //public static string ServerUrl2 = "http://1.13.195.131:9000"; - public static string ServerUrl = "http://119.45.29.75:9000"; + public static string ServerUrl = "http://1.13.195.131:9000"; + //public static string ServerUrl = "http://119.45.29.75:9000"; /// /// 订单监控延迟 /// diff --git a/Work/UserLogin.cs b/Work/UserLogin.cs index 96d6dd9..5504f3b 100644 --- a/Work/UserLogin.cs +++ b/Work/UserLogin.cs @@ -101,6 +101,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, "prod_api_url")) && !BaseClass.LoginApiUrl.Contains("localhost") && !BaseClass.LoginApiUrl.Contains("127.0.0.1")) + { + BaseClass.LoginApiUrl = BaseRegex.GetStringJson(ref html, "prod_api_url").Split(';').FirstOrDefault(); + } +#else + if (!string.IsNullOrEmpty(BaseRegex.GetStringJson(ref html, "prod_api_url"))) + { + BaseClass.LoginApiUrl = BaseRegex.GetStringJson(ref html, "prod_api_url").Split(';').FirstOrDefault(); + } +#endif if (BaseClass.GroupId != 3 && BaseClass.GroupId != 4 && BaseClass.GroupId != 9 && BaseClass.GroupId != 10 && BaseClass.GroupId != 11) {