/**
* 支付结果通知回调(支付结果通知https://pay.weixin.qq.com/wiki/doc/api/native.php?chapter=9_7&index=8)
* @param request
* @return
*/
@RequestMapping("/notify/url")
public String notifyUrl(HttpServletRequest request) throws Exception {
// 获得HttpServletRequest信息
String xmlResult = getRequestMessage(request);
// XML格式字符串转换为Map
Map<String, String> resultMap = WXPayUtil.xmlToMap(xmlResult);
// 发送支付结果给MQ
// This method serializes the specified object into its equivalent Json representation.
rabbitTemplate.convertAndSend(exchange,routingKey, JSON.toJSONString(resultMap));
String result = "<xml><return_code><![CDATA[SUCCESS]]></return_code><return_msg><![CDATA[OK]]></return_msg></xml>";
return result;
}