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";
|
string scene = _curProductCategory ?? "Store";
|
||||||
bool isFree = false;
|
bool isFree = false;
|
||||||
if (orderType == 1) isFree = IsSubscriptionFreeTrailById(productId);
|
if (orderType == 1) isFree = IsSubscriptionFreeTrailById(productId);
|
||||||
|
string appleReceiptString = "";
|
||||||
//---------------- All Report Information --------------------
|
//---------------- All Report Information --------------------
|
||||||
|
|
||||||
LogI($"--- Report b_level:[{level}] with product id:{args.purchasedProduct.definition.id} ");
|
LogI($"--- Report b_level:[{level}] with product id:{args.purchasedProduct.definition.id} ");
|
||||||
|
|
@ -747,7 +748,7 @@ namespace Guru
|
||||||
|
|
||||||
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);
|
||||||
|
|
@ -757,7 +758,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 订单验证, 上报打点信息 ----
|
||||||
|
|
@ -783,7 +784,7 @@ namespace Guru
|
||||||
{
|
{
|
||||||
ReportAppleOrder(orderType,
|
ReportAppleOrder(orderType,
|
||||||
appleReceipt.productID,
|
appleReceipt.productID,
|
||||||
args.purchasedProduct.receipt,
|
appleReceiptString,
|
||||||
appleReceipt.transactionID,
|
appleReceipt.transactionID,
|
||||||
appleReceipt.purchaseDate,
|
appleReceipt.purchaseDate,
|
||||||
level,
|
level,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue