From a056a5c23dd904ff180441601c97e295c74001de Mon Sep 17 00:00:00 2001 From: huyufei Date: Mon, 18 Mar 2024 15:15:46 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A1=A5=E5=85=A8=E6=89=93=E7=82=B9?= =?UTF-8?q?=E7=BC=BA=E5=A4=B1=20SubPruchase=20=E7=82=B9=E4=BD=8D=E7=9A=84?= =?UTF-8?q?=20BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Runtime/IPM/Scripts/Requests/AppleOrderRequest.cs | 4 +++- .../Runtime/IPM/Scripts/Requests/GoogleOrderRequest.cs | 5 ++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Runtime/GuruCore/Runtime/IPM/Scripts/Requests/AppleOrderRequest.cs b/Runtime/GuruCore/Runtime/IPM/Scripts/Requests/AppleOrderRequest.cs index 8bd802f..5674e13 100644 --- a/Runtime/GuruCore/Runtime/IPM/Scripts/Requests/AppleOrderRequest.cs +++ b/Runtime/GuruCore/Runtime/IPM/Scripts/Requests/AppleOrderRequest.cs @@ -58,12 +58,14 @@ namespace Guru if (orderType == 0) { AdjustService.TrackIAPPurchase(usdPrice, productId); + Analytics.IAPPurchase(usdPrice, productId); } else if (orderType == 1) { AdjustService.TrackSubPurchase(usdPrice, productId); + Analytics.SubPurchase(usdPrice, productId); } - Analytics.IAPPurchase(usdPrice, productId); + } } } diff --git a/Runtime/GuruCore/Runtime/IPM/Scripts/Requests/GoogleOrderRequest.cs b/Runtime/GuruCore/Runtime/IPM/Scripts/Requests/GoogleOrderRequest.cs index 541a0b1..0833c66 100644 --- a/Runtime/GuruCore/Runtime/IPM/Scripts/Requests/GoogleOrderRequest.cs +++ b/Runtime/GuruCore/Runtime/IPM/Scripts/Requests/GoogleOrderRequest.cs @@ -62,16 +62,15 @@ namespace Guru { pid = productId; AdjustService.TrackIAPPurchase(usdPrice, productId); // 上报 IAP 支付事件 + Analytics.IAPPurchase(usdPrice, pid); } if (!string.IsNullOrEmpty(subscriptionId)) { pid = subscriptionId; AdjustService.TrackSubPurchase(usdPrice, productId); // 上报 订阅 支付事件 + Analytics.SubPurchase(usdPrice, productId); } - - Analytics.IAPPurchase(usdPrice, pid); - return; } }