🐛 微信支付平台证书自动更新判断修复

This commit is contained in:
chenblue23 2022-07-28 03:23:06 +00:00 committed by binarywang
parent 44ce1e9fbc
commit 873a0218e7

View File

@ -123,7 +123,7 @@ public class AutoUpdateCertificatesVerifier implements Verifier {
* 检查证书是否在有效期内如果不在有效期内则进行更新
*/
private void checkAndAutoUpdateCert() {
if (instant == null || instant.plus(minutesInterval, ChronoUnit.MINUTES).compareTo(Instant.now()) >= 0) {
if (instant == null || instant.plus(minutesInterval, ChronoUnit.MINUTES).compareTo(Instant.now()) <= 0) {
if (lock.tryLock()) {
try {
autoUpdateCert();