+ add CdnHost to GuruSettings

Signed-off-by: huyufei <yufei.hu@castbox.fm>
deeplink
胡宇飞 2024-05-11 11:51:09 +08:00
parent 39d1ad0d39
commit d53cdab2e5
1 changed files with 14 additions and 11 deletions

View File

@ -38,7 +38,6 @@ namespace Guru
[Header("iOS商店URL")]
public string IOSStoreUrl = "";
[Header("中台配置")]
public IPMSetting IPMSetting;
[Header("打点配置")]
@ -94,7 +93,8 @@ 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;
@ -103,8 +103,8 @@ namespace Guru
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]