fix 校验订单超时时间是否正常判断错误 README更新

This commit is contained in:
DaxPay
2024-10-14 09:20:18 +08:00
parent a565424d02
commit baf69d9eb0
2 changed files with 5 additions and 3 deletions

View File

@@ -183,7 +183,7 @@ public class PayAssistService {
*/
public void validationExpiredTime(PayParam payParam) {
LocalDateTime expiredTime = this.getExpiredTime(payParam);
if (Objects.nonNull(expiredTime) && DateTimeUtil.lt(LocalDateTime.now(), expiredTime)) {
if (Objects.nonNull(expiredTime) && DateTimeUtil.lt(expiredTime,LocalDateTime.now())) {
throw new ValidationFailedException("支付超时时间设置有误, 请检查!");
}
}