| | |
| | | /// <summary> |
| | | /// RemoteCDN 模式下的主 CDN 地址。 |
| | | /// </summary> |
| | | public static readonly string RemoteMainURL = "https://cdn.example.com/bundles/WebGL"; |
| | | public static readonly string RemoteMainURL = ""; |
| | | |
| | | /// <summary> |
| | | /// RemoteCDN 模式下的备用 CDN 地址(留空则与主地址相同)。 |
| | |
| | | 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; |