Przeglądaj źródła

fix

formao-live
zhengfangyuan 2 lat temu
rodzic
commit
e56b4b52f3
1 zmienionych plików z 1 dodań i 2 usunięć
  1. +1
    -2
      weixin-java-pay/src/main/java/com/github/binarywang/wxpay/v3/auth/AutoUpdateCertificatesVerifier.java

+ 1
- 2
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/v3/auth/AutoUpdateCertificatesVerifier.java Wyświetl plik

@@ -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<X509Certificate> newCertList = deserializeToCerts(apiV3Key, body);
if (newCertList.isEmpty()) {
log.warn("Cert list is empty");
@@ -158,7 +157,7 @@ public class AutoUpdateCertificatesVerifier implements Verifier {
/**
* 反序列化证书并解密
*/
private List<X509Certificate> deserializeToCerts(byte[] apiV3Key, String body) throws GeneralSecurityException, IOException {
private static List<X509Certificate> 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");


Ładowanie…
Anuluj
Zapisz