apple iap-v2 校验去掉支付时间

This commit is contained in:
khalil
2023-11-06 17:45:12 +08:00
parent 2022be4e77
commit b19db039ef
2 changed files with 3 additions and 3 deletions

View File

@@ -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);

View File

@@ -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);
}
}*/
}
}