From d53cdab2e518e1d2271e4848aa0b4264c61cbe02 Mon Sep 17 00:00:00 2001 From: huyufei Date: Sat, 11 May 2024 11:51:09 +0800 Subject: [PATCH] + add CdnHost to GuruSettings Signed-off-by: huyufei --- .../GuruCore/Runtime/Settings/GuruSettings.cs | 25 +++++++++++-------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/Runtime/GuruCore/Runtime/Settings/GuruSettings.cs b/Runtime/GuruCore/Runtime/Settings/GuruSettings.cs index 4a806bd..82f07d6 100644 --- a/Runtime/GuruCore/Runtime/Settings/GuruSettings.cs +++ b/Runtime/GuruCore/Runtime/Settings/GuruSettings.cs @@ -37,7 +37,6 @@ namespace Guru public string AndroidStoreUrl = ""; [Header("iOS商店URL")] public string IOSStoreUrl = ""; - [Header("中台配置")] public IPMSetting IPMSetting; @@ -94,17 +93,18 @@ namespace Guru public void UpdateAppSettings(string bundleId = "", string fbAppId = "", string supportEmail = "", - string privacyUrl = "", string termsUrl = "", string androidStoreUrl = "", string iosStoreUrl = "") + string privacyUrl = "", string termsUrl = "", + string androidStoreUrl = "", string iosStoreUrl = "", string cdnHost = "") { - if(!string.IsNullOrEmpty(bundleId)) IPMSetting.bundleId = bundleId; - if(!string.IsNullOrEmpty(supportEmail) )SupportEmail = supportEmail; - if(!string.IsNullOrEmpty(privacyUrl) )PriacyUrl = privacyUrl; - if(!string.IsNullOrEmpty(termsUrl) )TermsUrl = termsUrl; - if(!string.IsNullOrEmpty(androidStoreUrl) )AndroidStoreUrl = androidStoreUrl; - if(!string.IsNullOrEmpty(iosStoreUrl) )IOSStoreUrl = iosStoreUrl; - if(!string.IsNullOrEmpty(fbAppId) )IPMSetting.fbAppId = fbAppId; + if (!string.IsNullOrEmpty(bundleId)) IPMSetting.bundleId = bundleId; + if (!string.IsNullOrEmpty(supportEmail)) SupportEmail = supportEmail; + if (!string.IsNullOrEmpty(privacyUrl)) PriacyUrl = privacyUrl; + if (!string.IsNullOrEmpty(termsUrl)) TermsUrl = termsUrl; + if (!string.IsNullOrEmpty(androidStoreUrl)) AndroidStoreUrl = androidStoreUrl; + if (!string.IsNullOrEmpty(iosStoreUrl)) IOSStoreUrl = iosStoreUrl; + if (!string.IsNullOrEmpty(fbAppId)) IPMSetting.fbAppId = fbAppId; + if (!string.IsNullOrEmpty(cdnHost)) IPMSetting.cdnHost = cdnHost; } - } [Serializable] @@ -120,12 +120,15 @@ namespace Guru [SerializeField] internal string fbAppId; [Header("Facebook Client Token")] [SerializeField] internal string fbClientToken; - + [Header("Cdn Host 地址")] + [SerializeField] internal string cdnHost; + public string AppId => appID; public int TokenValidTime => tokenValidTime; public string AppBundleId => bundleId; public string FacebookAppId => fbAppId; public string FacebookClientToken => fbClientToken; + public string CdnHost => cdnHost; } [Serializable]