From bf9d063af5655f93db17578cfe52d8abbb60c596 Mon Sep 17 00:00:00 2001
From: yyl <yyl>
Date: 星期三, 03 十二月 2025 17:42:40 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.1.20:10010/r/Project_SG_scripts
---
Main/System/Login/ServerListCenter.cs | 16 ++++++++++++++--
1 files changed, 14 insertions(+), 2 deletions(-)
diff --git a/Main/System/Login/ServerListCenter.cs b/Main/System/Login/ServerListCenter.cs
index 05d5ba0..5678479 100644
--- a/Main/System/Login/ServerListCenter.cs
+++ b/Main/System/Login/ServerListCenter.cs
@@ -7,7 +7,7 @@
public class ServerListCenter : Singleton<ServerListCenter>
{
- public static readonly string[] JUMP_URL = new string[] { "http://gamecenter.secondworld.net.cn:11000/center/server_list.php/?" };
+ public static readonly string[] JUMP_URL = new string[] { "http://xssgcenter.secondworld.net.cn:11000/center/server_list.php/?" };
public static string SERVERLIST_URL_COMMON = "";
public static string SERVERLIST_URL_PLAYER = "";
@@ -180,6 +180,18 @@
return data.name.Replace("@gm", "");
}
+ // 鑾峰彇鏈嶅姟鍣ㄥ湴鍧�
+ public string GetServerUrl(int id, string defaultHead = "http://", int replacePort = 0)
+ {
+ var data = GetServerDataEx(id);
+ if (replacePort > 0)
+ {
+ return $"{defaultHead}{data.region_domain}:{replacePort}";
+ }
+ return $"{defaultHead}{data.region_domain}:{data.login_port}";
+
+ }
+
public void RequestJumpUrl()
{
if (VersionUtility.Instance.InIosAuditTime())
@@ -187,7 +199,7 @@
return;
}
- var url = StringUtility.Contact(JUMP_URL[0], "game=xbqy&flag=", VersionConfig.Get().appId, "_", VersionConfig.Get().branch, "_", VersionConfig.Get().version);
+ var url = StringUtility.Contact(JUMP_URL[0], "game=xssg&flag=", VersionConfig.Get().appId, "_", VersionConfig.Get().branch, "_", VersionConfig.Get().version);
jumpUrlIndex++;
serverUrl = url;
Debug.Log("http鍦板潃:serverlist " + url);
--
Gitblit v1.8.0