+ change ios receipt content. now is full json body

deeplink
胡宇飞 2024-05-09 20:34:47 +08:00
parent 5a52fc0987
commit 30c33f8ec9
1 changed files with 4 additions and 3 deletions

View File

@ -738,8 +738,10 @@ namespace Guru
#endif #endif
IPurchaseReceipt[] allReceipts = null; IPurchaseReceipt[] allReceipts = null;
try try
{ {
/*
#if UNITY_IOS #if UNITY_IOS
// ---- iOS 订单验证, 上报打点信息 ---- // ---- iOS 订单验证, 上报打点信息 ----
var jsonData = JsonConvert.DeserializeObject<JObject>(args.purchasedProduct.receipt); var jsonData = JsonConvert.DeserializeObject<JObject>(args.purchasedProduct.receipt);
@ -749,6 +751,7 @@ namespace Guru
LogI($"--- [{productId}] iOS receipt: {appleReceiptString}"); LogI($"--- [{productId}] iOS receipt: {appleReceiptString}");
} }
#endif #endif
*/
allReceipts = _validator.Validate(args.purchasedProduct.receipt); allReceipts = _validator.Validate(args.purchasedProduct.receipt);
// ---- Android 订单验证, 上报打点信息 ---- // ---- Android 订单验证, 上报打点信息 ----
@ -772,7 +775,7 @@ namespace Guru
{ {
ReportAppleOrder(orderType, ReportAppleOrder(orderType,
appleReceipt.productID, appleReceipt.productID,
appleReceiptString, args.purchasedProduct.receipt,
appleReceipt.transactionID, appleReceipt.transactionID,
appleReceipt.purchaseDate, level); appleReceipt.purchaseDate, level);
} }
@ -782,9 +785,7 @@ namespace Guru
Analytics.LogCrashlytics(exmsg); Analytics.LogCrashlytics(exmsg);
LogE(exmsg); LogE(exmsg);
} }
} }
} }
catch (Exception ex) catch (Exception ex)
{ {