From 61ff5027d4c078d14954d4ae8e86400b6719fe19 Mon Sep 17 00:00:00 2001 From: huyufei Date: Wed, 7 Aug 2024 17:00:14 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E7=BB=8F=E6=B5=8E?= =?UTF-8?q?=E6=89=93=E7=82=B9=E5=8F=AA=E4=B8=8A=E4=BC=A0=20Firebase=20?= =?UTF-8?q?=E7=9A=84=20bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: huyufei --- .../GuruCore/Runtime/Analytics/Analytics.Economic.cs | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/Runtime/GuruCore/Runtime/Analytics/Analytics.Economic.cs b/Runtime/GuruCore/Runtime/Analytics/Analytics.Economic.cs index 5c48dd5..202a351 100644 --- a/Runtime/GuruCore/Runtime/Analytics/Analytics.Economic.cs +++ b/Runtime/GuruCore/Runtime/Analytics/Analytics.Economic.cs @@ -103,7 +103,11 @@ namespace Guru if(!string.IsNullOrEmpty(scene)) data[ParameterScene] = scene; // 获取的虚拟货币或者道具的场景 if (extra != null) data.AddRange(extra, isOverride: true); - TrackEvent(EventEarnVirtualCurrency, data, new EventSetting() { EnableFirebaseAnalytics = true }); + TrackEvent(EventEarnVirtualCurrency, data, new EventSetting() + { + EnableFirebaseAnalytics = true, + EnableGuruAnalytics = true + }); // FB 上报收入点 FBService.LogEvent(EventEarnVirtualCurrency, value, data); @@ -131,7 +135,11 @@ namespace Guru if(!string.IsNullOrEmpty(scene)) data[ParameterScene] = scene; // 获取的虚拟货币或者道具的场景 - TrackEvent(EventSpendVirtualCurrency, data, new EventSetting() { EnableFirebaseAnalytics = true }); + TrackEvent(EventSpendVirtualCurrency, data, new EventSetting() + { + EnableFirebaseAnalytics = true, + EnableGuruAnalytics = true + }); // FB 上报消费点 FBService.LogEvent(EventSpendVirtualCurrency, value, data);