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