Преглед изворни кода

🐛 #1547 修复小程序二维码创建参数包含中文时出现乱码的问题

dev1
Howard Liu пре 5 година
committed by GitHub
родитељ
комит
8f5a9e0d76
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 измењених фајлова са 1 додато и 1 уклоњено
  1. +1
    -1
      weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/util/QrcodeRequestExecutor.java

+ 1
- 1
weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/util/QrcodeRequestExecutor.java Прегледај датотеку

@@ -48,7 +48,7 @@ public class QrcodeRequestExecutor implements RequestExecutor<File, AbstractWxMa
); );
} }


httpPost.setEntity(new StringEntity(qrcodeWrapper.toJson()));
httpPost.setEntity(new StringEntity(qrcodeWrapper.toJson(), ContentType.APPLICATION_JSON));


try (final CloseableHttpResponse response = requestHttp.getRequestHttpClient().execute(httpPost); try (final CloseableHttpResponse response = requestHttp.getRequestHttpClient().execute(httpPost);
final InputStream inputStream = InputStreamResponseHandler.INSTANCE.handleResponse(response)) { final InputStream inputStream = InputStreamResponseHandler.INSTANCE.handleResponse(response)) {


Loading…
Откажи
Сачувај