mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-09-19 01:58:17 +08:00
格式化代码
This commit is contained in:
@@ -375,7 +375,6 @@ public class WxPayServiceImpl implements WxPayService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 由于暂时未找到使用jodd-http实现证书配置的办法,故而暂时使用httpclient
|
|
||||||
* ecoolper(20170418),修改为jodd-http方式
|
* ecoolper(20170418),修改为jodd-http方式
|
||||||
*/
|
*/
|
||||||
private String postWithKey(String url, String requestStr) throws WxErrorException {
|
private String postWithKey(String url, String requestStr) throws WxErrorException {
|
||||||
@@ -385,9 +384,9 @@ public class WxPayServiceImpl implements WxPayService {
|
|||||||
sslContext = this.getConfig().initSSLContext();
|
sslContext = this.getConfig().initSSLContext();
|
||||||
}
|
}
|
||||||
|
|
||||||
HttpRequest request =HttpRequest.post(url).withConnectionProvider(new SSLSocketHttpConnectionProvider(sslContext));
|
HttpRequest request = HttpRequest.post(url).withConnectionProvider(new SSLSocketHttpConnectionProvider(sslContext));
|
||||||
request.bodyText(requestStr);
|
request.bodyText(requestStr);
|
||||||
HttpResponse response =request.send();
|
HttpResponse response = request.send();
|
||||||
String result = response.bodyText();
|
String result = response.bodyText();
|
||||||
this.log.debug("\n[URL]: {}\n[PARAMS]: {}\n[RESPONSE]: {}", url, requestStr, result);
|
this.log.debug("\n[URL]: {}\n[PARAMS]: {}\n[RESPONSE]: {}", url, requestStr, result);
|
||||||
return result;
|
return result;
|
||||||
|
Reference in New Issue
Block a user