mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-05-04 12:47:46 +08:00
🐛 微信支付平台证书自动更新判断修复
This commit is contained in:
parent
44ce1e9fbc
commit
873a0218e7
@ -123,7 +123,7 @@ public class AutoUpdateCertificatesVerifier implements Verifier {
|
|||||||
* 检查证书是否在有效期内,如果不在有效期内则进行更新
|
* 检查证书是否在有效期内,如果不在有效期内则进行更新
|
||||||
*/
|
*/
|
||||||
private void checkAndAutoUpdateCert() {
|
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()) {
|
if (lock.tryLock()) {
|
||||||
try {
|
try {
|
||||||
autoUpdateCert();
|
autoUpdateCert();
|
||||||
|
Loading…
Reference in New Issue
Block a user