Ver código fonte

优化代码

master
Binary Wang 6 anos atrás
pai
commit
99d601138f
1 arquivos alterados com 6 adições e 5 exclusões
  1. +6
    -5
      weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/WxPayServiceJoddHttpImpl.java

+ 6
- 5
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/WxPayServiceJoddHttpImpl.java Ver arquivo

@@ -1,5 +1,10 @@
package com.github.binarywang.wxpay.service.impl;

import java.nio.charset.StandardCharsets;
import javax.net.ssl.SSLContext;

import org.apache.commons.lang3.StringUtils;

import com.github.binarywang.wxpay.bean.WxPayApiData;
import com.github.binarywang.wxpay.exception.WxPayException;
import jodd.http.HttpConnectionProvider;
@@ -10,10 +15,6 @@ import jodd.http.ProxyInfo.ProxyType;
import jodd.http.net.SSLSocketHttpConnectionProvider;
import jodd.http.net.SocketHttpConnectionProvider;
import jodd.util.Base64;
import org.apache.commons.lang3.StringUtils;

import javax.net.ssl.SSLContext;
import java.nio.charset.StandardCharsets;

/**
* 微信支付请求实现类,jodd-http实现.
@@ -87,7 +88,7 @@ public class WxPayServiceJoddHttpImpl extends BaseWxPayServiceImpl {
try {
this.log.debug("【微信服务器响应头信息】:\n{}", response.toString(false));
} catch (NullPointerException e) {
throw new WxPayException("response.toString() 居然抛出空指针异常了", e);
this.log.warn("HttpResponse.toString() 居然抛出空指针异常了", e);
}

String responseString = response.bodyText();


Carregando…
Cancelar
Salvar