fix: 修复Apple Receipt 传入值, 改为原来的 payload 数据
Signed-off-by: huyufei <yufei.hu@castbox.fm>deeplink
parent
f9f4d7428f
commit
e33b2ae024
|
|
@ -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<JObject>(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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue