+ change ios receipt content. now is full json body
							parent
							
								
									5a52fc0987
								
							
						
					
					
						commit
						30c33f8ec9
					
				|  | @ -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) | ||||
|             { | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue