update: 升级 CDN Host 属性
							parent
							
								
									cd3c53d674
								
							
						
					
					
						commit
						4cd2e5ff19
					
				|  | @ -587,6 +587,9 @@ namespace Guru.Editor | |||
|                 // BundleID | ||||
|                 p = n.serializedObject.FindProperty("IPMSetting.bundleId"); | ||||
|                 p.stringValue = _serviceConfig.app_settings.bundle_id; | ||||
|                 // CdnHost | ||||
|                 p = n.serializedObject.FindProperty("IPMSetting.cdnHost"); | ||||
|                 p.stringValue = _serviceConfig.CdnHost(); | ||||
|                 // tokenValidTime | ||||
|                 if (_serviceConfig.TokenValidTime() > 0) | ||||
|                 { | ||||
|  | @ -603,7 +606,15 @@ namespace Guru.Editor | |||
|                     p.stringValue = _serviceConfig.fb_settings.fb_client_token; | ||||
|                 } | ||||
|             } | ||||
| 
 | ||||
|              | ||||
|             n =  so.FindProperty("AnalyticsSetting"); | ||||
|             if (null != n) | ||||
|             { | ||||
|                 // levelEndSuccessNum | ||||
|                 p = n.serializedObject.FindProperty("AnalyticsSetting.levelEndSuccessNum"); | ||||
|                 p.intValue = _serviceConfig.LevelEndSuccessNum(); | ||||
|             } | ||||
|              | ||||
|             //---------- AMAZON ----------------------- | ||||
|             n = so.FindProperty("AmazonSetting"); | ||||
|             if (null != n) | ||||
|  |  | |||
|  | @ -63,9 +63,10 @@ namespace Guru | |||
|         public bool KeywordsEnabled() => parameters?.enable_keywords ?? false;  | ||||
|         public int TokenValidTime() => parameters?.token_vaild_time ?? 604800; | ||||
|         public int LevelEndSuccessNum() => parameters?.level_end_success_num ?? 50; | ||||
|         public string CdnHost() => parameters?.cdn_host ?? ""; | ||||
|         //-------------------------------- Parameters -------------------------------- | ||||
|          | ||||
|          | ||||
| 
 | ||||
| 
 | ||||
|     } | ||||
|      | ||||
|     [Serializable]     | ||||
|  | @ -99,6 +100,7 @@ namespace Guru | |||
|         public bool apple_review = false; // 苹果审核标志位 | ||||
|         public bool enable_errorlog = false; | ||||
|         public bool ads_compliance = false; | ||||
|         public string cdn_host = ""; | ||||
|     } | ||||
| 
 | ||||
|     [Serializable] | ||||
|  |  | |||
|  | @ -299,9 +299,9 @@ namespace Guru | |||
|         { | ||||
|             Analytics.Track(Consts.EventSDKInfo, new Dictionary<string, dynamic>() | ||||
|             { | ||||
|                 { Consts.PropertyFirstOpenTime, time.ToString("F6") }, | ||||
|                 { "boost_time", time.ToString("F6") }, | ||||
|                 { Consts.PropertyDeviceID, DeviceId }, | ||||
|                 { Consts.ParameterItemName, Version} | ||||
|                 { "version", Version} | ||||
|             }, new Analytics.EventSetting() | ||||
|             { | ||||
|                 EnableFirebaseAnalytics = true, | ||||
|  |  | |||
|  | @ -41,7 +41,7 @@ namespace Guru | |||
|         public static string IDFA => IPMConfig.ADJUST_IDFA; | ||||
|         public static string AdjustId => IPMConfig.ADJUST_ID; | ||||
|         public static string GSADID => IPMConfig.ADJUST_ADID; | ||||
| 
 | ||||
|         public static string CdnHost => _appServicesConfig?.CdnHost() ?? ""; | ||||
| 
 | ||||
|         private static GuruAppVersion _appVersion; | ||||
|         private static GuruAppVersion GuruAppVersion | ||||
|  |  | |||
|  | @ -328,7 +328,8 @@ namespace Guru | |||
|                                 _appServicesConfig.app_settings.privacy_url, | ||||
|                                 _appServicesConfig.app_settings.terms_url, | ||||
|                                 _appServicesConfig.app_settings.android_store, | ||||
|                                 _appServicesConfig.app_settings.ios_store); | ||||
|                                 _appServicesConfig.app_settings.ios_store,  | ||||
|                                 _appServicesConfig.parameters.cdn_host ?? ""); | ||||
|                              | ||||
|                             _appBundleId = _appServicesConfig.app_settings.bundle_id; // 配置预设的 BundleId | ||||
|                         } | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue