fix: 修复经济打点只上传 Firebase 的 bug

Signed-off-by: huyufei <yufei.hu@castbox.fm>
胡宇飞 2024-08-07 17:00:14 +08:00
parent 19160467b1
commit 61ff5027d4
1 changed files with 10 additions and 2 deletions

View File

@ -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);