From 4b6a45839609316136f2d122e0c0b32748c47c6a Mon Sep 17 00:00:00 2001 From: huyufei Date: Wed, 22 May 2024 20:17:13 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=AE=8C=E5=96=84=20tch=5F020=20?= =?UTF-8?q?=E6=89=93=E7=82=B9=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: huyufei --- .../Runtime/Analytics/Analytics.TemplateDefine.cs | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/Runtime/GuruCore/Runtime/Analytics/Analytics.TemplateDefine.cs b/Runtime/GuruCore/Runtime/Analytics/Analytics.TemplateDefine.cs index b0c8b19..0c3d157 100644 --- a/Runtime/GuruCore/Runtime/Analytics/Analytics.TemplateDefine.cs +++ b/Runtime/GuruCore/Runtime/Analytics/Analytics.TemplateDefine.cs @@ -369,9 +369,6 @@ namespace Guru public static void Tch001IAPRev(double value, string productId, string orderId, string orderType, string timestamp) { TchRevEvent(EventTchAdRev001Impression, IAPPlatform, value, orderType, productId, orderId, timestamp); - - if(EnableTch02Event) return; // 如果使用了太极02 则不做FB上报 - FBPurchase(value, USD, "iap", IAPPlatform); } /// @@ -384,13 +381,10 @@ namespace Guru /// /// // public static void Tch02IAPRev(double value, string productId, string orderId, string orderType, string timestamp) - public static void Tch02IAPRev(double value) + public static void Tch02IAPRev(double value, string productId, string orderId, string orderType, string timestamp) { if (!EnableTch02Event) return; - - TchRevEvent(EventTchAdRev02Impression, IAPPlatform, value); - - FBPurchase(value, USD, "iap", IAPPlatform); + TchRevEvent(EventTchAdRev02Impression, IAPPlatform, value, orderType, productId, orderId, timestamp); } /// @@ -669,9 +663,11 @@ namespace Guru // TCH 001 Tch001IAPRev(usdPrice, productId, orderId, orderType, orderDate); // TCH 020 - Tch02IAPRev(usdPrice); + Tch02IAPRev(usdPrice, productId, orderId, orderType, orderDate); // Adjust Track IAP Purchase AdjustService.TrackIAPPurchase(usdPrice, productId); // 上报 IAP 支付事件 + // Facebook Track IAP Purchase + FBPurchase(usdPrice, USD, "iap", IAPPlatform); if (orderData.orderType == 1) {