-
-
Notifications
You must be signed in to change notification settings - Fork 9k
Closed
Description
用户拍照或者发图后,后台可以收到image类的用户消息,可是收不到事件推送。
经过排查,发现微信已经推送了事件,我的服务器也接到了加密的事件推送消息,消息解密也完成了,
但是在构建WxCpXmlMessage时遇到了问题:
---- Debugging information ----
field : picList
class : me.chanjar.weixin.cp.bean.WxCpXmlMessage$SendPicsInfo
required-type : me.chanjar.weixin.cp.bean.WxCpXmlMessage$SendPicsInfo
converter-type : com.thoughtworks.xstream.converters.reflection.ReflectionConverter
line number : 1
class[1] : me.chanjar.weixin.cp.bean.WxCpXmlMessage
version : 1.4.7
发现解密过的xml里面的确有多个picList:
<xml><ToUserName><![CDATA[wx45a0972125658be9]]></ToUserName><FromUserName><![CDATA[xiaohe]]></FromUserName><CreateTime>1502012364</CreateTime><MsgType><![CDATA[event]]></MsgType><AgentID>1000004</AgentID><Event><![CDATA[pic_weixin]]></Event><EventKey><![CDATA[faceSimilarity]]></EventKey><SendPicsInfo><PicList><item><PicMd5Sum><![CDATA[aef52ae501537e552725c5d7f99c1741]]></PicMd5Sum></item></PicList><PicList><item><PicMd5Sum><![CDATA[c4564632a4fab91378c39bea6aad6f9e]]></PicMd5Sum></item></PicList><Count>2</Count></SendPicsInfo></xml>
这个算是微信那边推送了错误的格式么?我觉得多个照片就该是PicList里面的多个item啊。
@binarywang