1
0
mirror of synced 2025-12-28 22:31:14 +08:00

#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

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