diff --git a/Runtime/GuruCore/Runtime/ExtensionKit/CDNLoader.cs b/Runtime/GuruCore/Runtime/ExtensionKit/CDNLoader.cs index 1512653..836358f 100644 --- a/Runtime/GuruCore/Runtime/ExtensionKit/CDNLoader.cs +++ b/Runtime/GuruCore/Runtime/ExtensionKit/CDNLoader.cs @@ -95,11 +95,15 @@ public class CDNLoader : MonoBehaviour /// 创建Loader /// /// - public static CDNLoader Create(string remoteKey = "") + public static CDNLoader Create(string defaultValue = "", string remoteKey = "") { // 注入自定义的 CDNConfigKey, 可读取自定义的Default配置 - if(!string.IsNullOrEmpty(remoteKey)) CDNConfig.CdnConfigRemoteKey = remoteKey; - + if(!string.IsNullOrEmpty(remoteKey)) CDNConfig.CdnConfigRemoteKey = remoteKey; + + if (!string.IsNullOrEmpty(defaultValue)) + { + FirebaseUtil.AppendDefaultValue(remoteKey, defaultValue); + } var go = new GameObject(nameof(CDNLoader)); var loader = go.AddComponent(); return loader;