parent
							
								
									39d1ad0d39
								
							
						
					
					
						commit
						d53cdab2e5
					
				|  | @ -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] | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue