From e56b4b52f351e8da58c90313dfb03c60a164268d Mon Sep 17 00:00:00 2001 From: zhengfangyuan Date: Wed, 3 Aug 2022 13:08:08 +0800 Subject: [PATCH] fix --- .../wxpay/v3/auth/AutoUpdateCertificatesVerifier.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/v3/auth/AutoUpdateCertificatesVerifier.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/v3/auth/AutoUpdateCertificatesVerifier.java index ddcdd5d7..59957f50 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/v3/auth/AutoUpdateCertificatesVerifier.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/v3/auth/AutoUpdateCertificatesVerifier.java @@ -143,7 +143,6 @@ public class AutoUpdateCertificatesVerifier implements Verifier { int statusCode = response.getStatusLine().getStatusCode(); String body = EntityUtils.toString(response.getEntity()); if (statusCode == 200) { - log.info(" autoUpdateCert success。"+body); List newCertList = deserializeToCerts(apiV3Key, body); if (newCertList.isEmpty()) { log.warn("Cert list is empty"); @@ -158,7 +157,7 @@ public class AutoUpdateCertificatesVerifier implements Verifier { /** * 反序列化证书并解密 */ - private List deserializeToCerts(byte[] apiV3Key, String body) throws GeneralSecurityException, IOException { + private static List deserializeToCerts(byte[] apiV3Key, String body) throws GeneralSecurityException, IOException { AesUtils aesUtils = new AesUtils(apiV3Key); final JsonObject json = GsonParser.parse(body); final JsonArray dataNode = json.getAsJsonArray("data");