微信支付回调参数如下:
{"thirdPayPlatform":"wxpay","content":"http://101.91.62.170:4837/wx_xxe_dbc_os_2019071203_120?aHR0cHM6Ly9zeW5jYXBpLm1laXR1YW4uY29tL2NhbGxiYWNrL3d4L3BheU5vdGlmeQ==\">]>"} &xxe;
报错如下:
org.xml.sax.SAXParseException: DOCTYPE is disallowed when the feature "http://apache.org/xml/features/disallow-doctype-decl" set to true. at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:257) ~[?:1.8.0_45] at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:348) ~[?:1.8.0_45] at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:121) ~[?:1.8.0_45] at com.github.wxpay.sdk.WXPayUtil.xmlToMap(WXPayUtil.java:43) ~[wxpay-sdk-0.0.6.jar:0.0.6]
请问这是什么原因呢?
应该是你那边参数有问题。仔细核对参数。或者你本身XML的中文乱码问题。这不是回调问题,是你本身程序的问题。