| | |
| | | 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 = ""; |
| | |
| | | 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()) |
| | |
| | | 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); |