三国卡牌客户端基础资源仓库
yyl
2026-09-21 d4d8252725281bf90d19622da61bd92dec237b31
Assets/Launch/Config/WebGLRemoteConfig.cs
@@ -28,7 +28,7 @@
    /// <summary>
    /// RemoteCDN 模式下的主 CDN 地址。
    /// </summary>
    public static readonly string RemoteMainURL = "https://cdn.example.com/bundles/WebGL";
    public static readonly string RemoteMainURL = "";
    /// <summary>
    /// RemoteCDN 模式下的备用 CDN 地址(留空则与主地址相同)。
@@ -82,8 +82,8 @@
        string mainUrl = ActiveServerURL;
        if (string.IsNullOrEmpty(mainUrl))
        {
            Debug.LogWarning($"[WebGLRemoteConfig] 模式={CurrentMode} 但服务器地址为空,回退到 Local 模式");
            return null;
            throw new System.InvalidOperationException(
                $"[WebGLRemoteConfig] 模式={CurrentMode} 但服务器地址为空。请配置版本服务器 resource_url,或设置有效的 RemoteMainURL。");
        }
        string fallbackUrl;