소스 검색

//log

formao-live
xhxu 2 년 전
부모
커밋
e9b9fb33ff
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. +2
    -0
      weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/WxPayServiceApacheHttpImpl.java

+ 2
- 0
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/WxPayServiceApacheHttpImpl.java 파일 보기

@@ -137,6 +137,7 @@ public class WxPayServiceApacheHttpImpl extends BaseWxPayServiceImpl {
try (CloseableHttpResponse response = httpClient.execute(httpPost)) {
//v3已经改为通过状态码判断200 204 成功
int statusCode = response.getStatusLine().getStatusCode();
this.log.error("====="+statusCode);
String responseString = "{}";
HttpEntity entity = response.getEntity();
if (entity != null) {
@@ -147,6 +148,7 @@ public class WxPayServiceApacheHttpImpl extends BaseWxPayServiceImpl {
this.log.info("\n【请求地址】:{}\n【请求数据】:{}\n【响应数据】:{}", url, requestStr, responseString);
return responseString;
} else {
this.log.error(responseString);
//有错误提示信息返回
JsonObject jsonObject = GsonParser.parse(responseString);
throw convertException(jsonObject);


불러오는 중...
취소
저장