mirror of
				https://gitee.com/binary/weixin-java-tools.git
				synced 2025-10-31 18:46:10 +08:00 
			
		
		
		
	优化代码
This commit is contained in:
		| @ -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(); | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Binary Wang
					Binary Wang