diff --git a/Runtime/GuruIAP/Runtime/Code/IAPServiceBase.cs b/Runtime/GuruIAP/Runtime/Code/IAPServiceBase.cs index eb31728..32909b4 100644 --- a/Runtime/GuruIAP/Runtime/Code/IAPServiceBase.cs +++ b/Runtime/GuruIAP/Runtime/Code/IAPServiceBase.cs @@ -734,6 +734,7 @@ namespace Guru string scene = _curProductCategory ?? "Store"; bool isFree = false; if (orderType == 1) isFree = IsSubscriptionFreeTrailById(productId); + string appleReceiptString = ""; //---------------- All Report Information -------------------- LogI($"--- Report b_level:[{level}] with product id:{args.purchasedProduct.definition.id} "); @@ -747,7 +748,7 @@ namespace Guru try { -/* + #if UNITY_IOS // ---- iOS 订单验证, 上报打点信息 ---- var jsonData = JsonConvert.DeserializeObject(args.purchasedProduct.receipt); @@ -757,7 +758,7 @@ namespace Guru LogI($"--- [{productId}] iOS receipt: {appleReceiptString}"); } #endif -*/ + allReceipts = _validator.Validate(args.purchasedProduct.receipt); // ---- Android 订单验证, 上报打点信息 ---- @@ -783,7 +784,7 @@ namespace Guru { ReportAppleOrder(orderType, appleReceipt.productID, - args.purchasedProduct.receipt, + appleReceiptString, appleReceipt.transactionID, appleReceipt.purchaseDate, level,