mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-05-02 20:02:37 +08:00
🐛 微信支付平台证书自动更新判断修复
This commit is contained in:
parent
44ce1e9fbc
commit
873a0218e7
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user