瀏覽代碼

//log

formao-live
xhxu 2 年之前
父節點
當前提交
1a6643cd5a
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/WxPayServiceApacheHttpImpl.java

+ 1
- 1
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/WxPayServiceApacheHttpImpl.java 查看文件

@@ -141,6 +141,7 @@ public class WxPayServiceApacheHttpImpl extends BaseWxPayServiceImpl {
String responseString = "{}"; String responseString = "{}";
HttpEntity entity = response.getEntity(); HttpEntity entity = response.getEntity();
if (entity != null) { if (entity != null) {
this.log.error("====="+entity.toString());
responseString = EntityUtils.toString(entity, StandardCharsets.UTF_8); responseString = EntityUtils.toString(entity, StandardCharsets.UTF_8);
} }


@@ -148,7 +149,6 @@ public class WxPayServiceApacheHttpImpl extends BaseWxPayServiceImpl {
this.log.info("\n【请求地址】:{}\n【请求数据】:{}\n【响应数据】:{}", url, requestStr, responseString); this.log.info("\n【请求地址】:{}\n【请求数据】:{}\n【响应数据】:{}", url, requestStr, responseString);
return responseString; return responseString;
} else { } else {
this.log.error(responseString);
//有错误提示信息返回 //有错误提示信息返回
JsonObject jsonObject = GsonParser.parse(responseString); JsonObject jsonObject = GsonParser.parse(responseString);
throw convertException(jsonObject); throw convertException(jsonObject);


Loading…
取消
儲存