This commit is contained in:
2026-07-15 09:55:07 +08:00
parent 2d1c510ae0
commit b4fc8e6ee8
4 changed files with 26 additions and 21 deletions
@@ -2,15 +2,18 @@ namespace ScrewsMaster
{
public class NetworkManager : BaseUnityManager<NetworkManager>
{
#if JarvisRelease
public static string CrazyUrl = DomainReleaseUrl;
#else
public static string CrazyUrl = DomainDebugUrl;
#endif
public const string DomainDebugUrl = @"https://api.jsoncompare.online/";
public static readonly string DomainReleaseUrl = $"https://{DomainRelease}/api/";
public const string DomainRelease = "zoomatchsolo.top";
public static string DomainRelease = "zoomatchsolo.top";
// 改为只读属性,实时获取(等调用时 DomainRelease 早就初始化好了)
public static string DomainReleaseUrl => $"https://{DomainRelease}/api/";
// 改为只读属性,实时获取
#if JarvisRelease
public static string CrazyUrl => DomainReleaseUrl;
#else
public static string CrazyUrl => DomainDebugUrl;
#endif
public static bool haveSimCard = false;
private LoginSystem loginSystem;
private ConfigSystem configSystem;