apple iap-v2 校验去掉支付时间
This commit is contained in:
@@ -400,7 +400,7 @@ public class MyApiService {
|
||||
}
|
||||
|
||||
public void iosLookUpOrder() {
|
||||
String orderId = "MVQZZH5K4Q";
|
||||
String orderId = "ML0GVBSH92";
|
||||
ApplePublisher.Order order = ApplePublisher.lookUpOrderID(orderId, false);
|
||||
System.out.println(order);
|
||||
List<JWTTranscationInfoPayload> payloads = order.decodePayload(order.getSignedTransactions(), -1, JWTTranscationInfoPayload.class);
|
||||
|
@@ -119,13 +119,13 @@ public class IOSStoreKitV2Service {
|
||||
chargeRecordAppAccountToken, transcationInfo.getAppAccountToken());
|
||||
throw new ServiceException(BusiStatus.PARAMETERILLEGAL);
|
||||
}
|
||||
Date threeMinuteAgo = DateTimeUtil.addMinutes(new Date(), -3);
|
||||
/*Date threeMinuteAgo = DateTimeUtil.addMinutes(new Date(), -3);
|
||||
if (threeMinuteAgo.after(transcationInfo.getPurchaseDate())){
|
||||
log.error("[verifyOrder] 支付时间 不在三分钟前 purchaseDate {} threeMinuteAgo {}",
|
||||
DateTimeUtil.convertDate(transcationInfo.getPurchaseDate()),
|
||||
DateTimeUtil.convertDate(threeMinuteAgo));
|
||||
throw new ServiceException(BusiStatus.PARAMETERILLEGAL);
|
||||
}
|
||||
}*/
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user