From 30c33f8ec9910c986fb3c748f11e0b4bd1075f8d Mon Sep 17 00:00:00 2001 From: huyufei Date: Thu, 9 May 2024 20:34:47 +0800 Subject: [PATCH] + change ios receipt content. now is full json body --- Runtime/GuruIAP/Runtime/Code/IAPServiceBase.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Runtime/GuruIAP/Runtime/Code/IAPServiceBase.cs b/Runtime/GuruIAP/Runtime/Code/IAPServiceBase.cs index fcd6ba5..a30ed63 100644 --- a/Runtime/GuruIAP/Runtime/Code/IAPServiceBase.cs +++ b/Runtime/GuruIAP/Runtime/Code/IAPServiceBase.cs @@ -738,8 +738,10 @@ namespace Guru #endif IPurchaseReceipt[] allReceipts = null; + try { +/* #if UNITY_IOS // ---- iOS 订单验证, 上报打点信息 ---- var jsonData = JsonConvert.DeserializeObject(args.purchasedProduct.receipt); @@ -749,6 +751,7 @@ namespace Guru LogI($"--- [{productId}] iOS receipt: {appleReceiptString}"); } #endif +*/ allReceipts = _validator.Validate(args.purchasedProduct.receipt); // ---- Android 订单验证, 上报打点信息 ---- @@ -772,7 +775,7 @@ namespace Guru { ReportAppleOrder(orderType, appleReceipt.productID, - appleReceiptString, + args.purchasedProduct.receipt, appleReceipt.transactionID, appleReceipt.purchaseDate, level); } @@ -782,9 +785,7 @@ namespace Guru Analytics.LogCrashlytics(exmsg); LogE(exmsg); } - } - } catch (Exception ex) {