Skip to content

Commit 873a021

Browse files
chenblue23binarywang
authored andcommitted
🐛 微信支付平台证书自动更新判断修复
1 parent 44ce1e9 commit 873a021

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

weixin-java-pay/src/main/java/com/github/binarywang/wxpay/v3/auth/AutoUpdateCertificatesVerifier.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ public boolean verify(String serialNumber, byte[] message, String signature) {
123123
* 检查证书是否在有效期内,如果不在有效期内则进行更新
124124
*/
125125
private void checkAndAutoUpdateCert() {
126-
if (instant == null || instant.plus(minutesInterval, ChronoUnit.MINUTES).compareTo(Instant.now()) >= 0) {
126+
if (instant == null || instant.plus(minutesInterval, ChronoUnit.MINUTES).compareTo(Instant.now()) <= 0) {
127127
if (lock.tryLock()) {
128128
try {
129129
autoUpdateCert();

0 commit comments

Comments
 (0)