+ 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
IPurchaseReceipt[] allReceipts = null;
try
{
/*
#if UNITY_IOS
// ---- iOS 订单验证, 上报打点信息 ----
var jsonData = JsonConvert.DeserializeObject<JObject>(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)
{