Commit ea33be02 authored by shiyu's avatar shiyu

公众号

parent 433c65ae
......@@ -88,10 +88,11 @@ public class OfficialAccountController {
@RequestParam(required = false, name = "timestamp") String timestamp,
@RequestParam(required = false, name = "nonce") String nonce,
@RequestParam(required = false, name = "echostr") String echostr,
@RequestBody(required = false) String xml) {
@RequestBody(required = false) String xmlInfo) {
logger.info("222222222222222");
try {
List<Map<String, String>> list = XmlUtils.fromXml(xml, "xml");
logger.info("微信通知回调接口原文:{}", xmlInfo);
List<Map<String, String>> list = XmlUtils.fromXml(xmlInfo, "xml");
Map<String, String> contentMap = list.get(0);
String event = contentMap.get("Event");
if (SUBSCRIBE_EVENT.equals(event) || UNSUBSCRIBE_EVENT.equals(event)) {
......
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