From 7b6e8c7cbe038e42760a837711136d2d3f1ea142 Mon Sep 17 00:00:00 2001 From: huyufei Date: Sun, 7 Apr 2024 16:39:07 +0800 Subject: [PATCH] =?UTF-8?q?update:=20=E6=B7=BB=E5=8A=A0=E5=BC=80=E5=90=AF?= =?UTF-8?q?=20ErrorLog=20=E7=9A=84=E4=BA=91=E6=8E=A7=E6=A0=87=E5=BF=97?= =?UTF-8?q?=E4=BD=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Runtime/Code/Config/GuruServicesConfig.cs | 2 +- Runtime/Code/SDK/GuruSDK.cs | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) 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)