yyl
2025-12-03 bf9d063af5655f93db17578cfe52d8abbb60c596
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);