fix: 完善 tch_020 打点参数

Signed-off-by: huyufei <yufei.hu@castbox.fm>
deeplink
胡宇飞 2024-05-22 20:17:13 +08:00
parent 94f8e44ea9
commit 4b6a458396
1 changed files with 5 additions and 9 deletions

View File

@ -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);
}
/// <summary>
@ -384,13 +381,10 @@ namespace Guru
/// <param name="orderType"></param>
/// <param name="timestamp"></param>
// 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);
}
/// <summary>
@ -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)
{