|
|
@ -45,6 +45,11 @@ public class WechatPayController { |
|
|
|
String notifyXml = null; // 微信支付系统发送的数据(<![CDATA[product_001]]>格式)
|
|
|
|
String notifyXml = null; // 微信支付系统发送的数据(<![CDATA[product_001]]>格式)
|
|
|
|
notifyXml = IOUtil.inputStreamToString(request.getInputStream(), "UTF-8"); |
|
|
|
notifyXml = IOUtil.inputStreamToString(request.getInputStream(), "UTF-8"); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
log.info("微信支付系统发送的数据:" + notifyXml); |
|
|
|
|
|
|
|
SortedMap<String, String> map = XmlUtil.parseXmlToTreeMap(notifyXml, "UTF-8"); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
resXml = notifyService.wechatNotify(map); |
|
|
|
|
|
|
|
|
|
|
|
/* if (SignatureUtil.reCheckIsSignValidFromWeiXin(notifyXml, SysConst.getSysConfig().getWxApiKey(), "UTF-8")) { |
|
|
|
/* if (SignatureUtil.reCheckIsSignValidFromWeiXin(notifyXml, SysConst.getSysConfig().getWxApiKey(), "UTF-8")) { |
|
|
|
log.info("微信支付系统发送的数据:" + notifyXml); |
|
|
|
log.info("微信支付系统发送的数据:" + notifyXml); |
|
|
|
SortedMap<String, String> map = XmlUtil.parseXmlToTreeMap(notifyXml, "UTF-8"); |
|
|
|
SortedMap<String, String> map = XmlUtil.parseXmlToTreeMap(notifyXml, "UTF-8"); |
|
|
|