This commit is contained in:
Daniel Qian
2014-12-24 13:55:19 +08:00
parent b47cd3a18a
commit 75ca8241e7
2 changed files with 83 additions and 2 deletions

View File

@@ -382,7 +382,7 @@ public class WxMpXmlMessage {
public static WxMpXmlMessage fromXml(String xml) {
try {
// 操蛋的微信模板消息推送成功的消息是MsgID其他消息推送过来是MsgId
xml = xml.replaceAll("<MsgID>", "<MsgId>").replaceAll("</MsgID>", "</MsgID>");
xml = xml.replaceAll("<MsgID>", "<MsgId>").replaceAll("</MsgID>", "</MsgId>");
return XmlTransformer.fromXml(WxMpXmlMessage.class, xml);
} catch (JAXBException e) {
throw new RuntimeException(e);