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