Commit b53ca1c5 authored by shiyu's avatar shiyu

公众号

parent f49a1289
......@@ -91,7 +91,7 @@ public class OfficialAccountController {
@RequestBody(required = false) String xmlInfo,
HttpServletResponse response) throws IOException {
logger.info("222222222222222 :{}", echostr);
try {
/*try {
logger.info("微信通知回调接口原文:{}", xmlInfo);
List<Map<String, String>> list = XmlUtils.fromXml(xmlInfo, "xml");
Map<String, String> contentMap = list.get(0);
......@@ -104,7 +104,7 @@ public class OfficialAccountController {
}
} catch (Exception e) {
logger.error("视频号回调推送error : {}", e);
}
}*/
response.setContentType("text/plain"); // 设置响应的内容类型为HTML
response.setCharacterEncoding("UTF-8"); // 设置响应的字符编码为UTF-8
response.getWriter().write(echostr);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment