#305 修复微信变态的拍照或发图事件的消息格式的处理

This commit is contained in:
Binary Wang
2017-08-14 15:02:49 +08:00
parent 69ebad5e70
commit 67dad47be7
4 changed files with 133 additions and 99 deletions

View File

@@ -425,6 +425,8 @@ public class WxMpXmlMessage implements Serializable {
private Integer deviceStatus;
public static WxMpXmlMessage fromXml(String xml) {
//修改微信变态的消息内容格式,方便解析
xml = xml.replace("</PicList><PicList>", "");
return XStreamTransformer.fromXml(WxMpXmlMessage.class, xml);
}