瀏覽代碼

Merge branch 'formao-live' of https://git.malls.iformall.com/server/wxJava-final into formao-live

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

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

@@ -252,13 +252,14 @@ public class WxPayServiceApacheHttpImpl extends BaseWxPayServiceImpl {
} }


private StringEntity createEntry(String requestStr) { private StringEntity createEntry(String requestStr) {
try {
return new StringEntity(new String(requestStr.getBytes(StandardCharsets.UTF_8), StandardCharsets.ISO_8859_1));
} catch (UnsupportedEncodingException e) {
//cannot happen
this.log.error(e.getMessage(), e);
return null;
}
return new StringEntity(requestStr, ContentType.create("application/json", "utf-8"));
// try {
// return new StringEntity(new String(requestStr.getBytes(StandardCharsets.UTF_8), StandardCharsets.ISO_8859_1));
// } catch (UnsupportedEncodingException e) {
// //cannot happen
// this.log.error(e.getMessage(), e);
// return null;
// }
} }


private HttpClientBuilder createHttpClientBuilder(boolean useKey) throws WxPayException { private HttpClientBuilder createHttpClientBuilder(boolean useKey) throws WxPayException {


Loading…
取消
儲存