diff --git a/Runtime/Code/Config/GuruServicesConfig.cs b/Runtime/Code/Config/GuruServicesConfig.cs index 99dd8c9..b086eb3 100644 --- a/Runtime/Code/Config/GuruServicesConfig.cs +++ b/Runtime/Code/Config/GuruServicesConfig.cs @@ -55,7 +55,7 @@ namespace Guru //-------------------------------- Parameters -------------------------------- public double Tch02Value() => parameters?.tch_020 ?? 0; public bool IsAppReview() => parameters?.apple_review ?? false; - public bool EnableErrorLog() => parameters?.enable_errorlog ?? false; + public bool EnableAnaErrorLog() => parameters?.enable_errorlog ?? false; public bool IsAdsCompliance() => parameters?.ads_compliance ?? false; public bool DMACountryCheck() => parameters?.dma_country_check ?? false; public string DMAMapRule() => parameters?.dma_map_rule ?? ""; diff --git a/Runtime/Code/SDK/GuruSDK.cs b/Runtime/Code/SDK/GuruSDK.cs index 7e07931..1d824ff 100644 --- a/Runtime/Code/SDK/GuruSDK.cs +++ b/Runtime/Code/SDK/GuruSDK.cs @@ -234,6 +234,7 @@ namespace Guru bool useKeywords = false; bool useIAP = _initConfig.IAPEnabled; bool appleReview = false; + bool enableAnaErrorLog = false; //----------- Set GuruServices ---------------- var services = GetRemoteServicesConfig(); @@ -243,7 +244,7 @@ namespace Guru useKeywords = _appServicesConfig.KeywordsEnabled(); // 使用初始化配置中的 IAPEnable来联合限定, 如果本地写死关闭则不走云控开启 useIAP = _initConfig.IAPEnabled && _appServicesConfig.IsIAPEnabled(); - + enableAnaErrorLog = _appServicesConfig.EnableAnaErrorLog(); Try(() => { @@ -251,7 +252,7 @@ namespace Guru //---------------------------------------------------------------- // 自打点设置错误上报 - // GuruAnalytics.EnableErrorLog = _appServicesConfig.EnableErrorLog(); + if(enableAnaErrorLog) GuruAnalytics.EnableErrorLog = true; // adjust 事件设置 if (null != _appServicesConfig.adjust_settings && null != GuruSettings)