From d7f41bbba67f975a07475bba3f7d6af361ab3957 Mon Sep 17 00:00:00 2001 From: huyufei Date: Sat, 3 Aug 2024 18:41:00 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=20=E4=BF=AE=E5=A4=8D=20Firebase=20?= =?UTF-8?q?ID=20=E6=B3=A8=E5=85=A5=E5=87=BD=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: huyufei --- Runtime/GuruCore/Runtime/Analytics/Analytics.Custom.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Runtime/GuruCore/Runtime/Analytics/Analytics.Custom.cs b/Runtime/GuruCore/Runtime/Analytics/Analytics.Custom.cs index caf39d9..da169ce 100644 --- a/Runtime/GuruCore/Runtime/Analytics/Analytics.Custom.cs +++ b/Runtime/GuruCore/Runtime/Analytics/Analytics.Custom.cs @@ -44,14 +44,14 @@ namespace Guru _lastReportRateDate = DateTime.Now; _reportSuccessInterval = 120; // 2分钟上报一次 - if(!string.IsNullOrEmpty(firebaseId)) - GuruAnalytics.Instance.SetFirebaseId(firebaseId); // 在自打点初始化之前, 需要调用一下设置 FirebaseId + Debug.Log($"{TAG} [guru_analytic] --- InitGuruAnalyticService: IsDebug:{IsDebug} firebaseId:{firebaseId}"); GuruAnalytics.Init(appId, deviceInfo, () => { - SetUserProperty(GuruAnalyticsConfigManager.KEY_GURU_ANALYTICS_EXP, GuruAnalytics.Instance.ExperimentGroupId); OnGuruAnalyticsInitComplete(); - }, IsDebug); // Android 初始化 + Debug.Log($"{TAG} [guru_analytic]--- Guru EXP: GroupId: {GuruAnalytics.Instance.ExperimentGroupId}"); + SetUserProperty(GuruAnalyticsConfigManager.KEY_GURU_ANALYTICS_EXP, GuruAnalytics.Instance.ExperimentGroupId); + }, IsDebug, firebaseId); // Android 初始化 UpdateAllUserProperties(); } catch (Exception ex)