liyiorg / weixin-popular

微信SDK JAVA (公众平台、开放平台、 商户平台、 服务商平台)
Apache License 2.0
2.5k stars 1.06k forks source link

EventMessage MsgId xml 解析bean错误 #105

Closed skywi closed 7 years ago

skywi commented 7 years ago

超级低级错误,大小些错误 weixin.popular.bean.message.EventMessage.java 42 line @XmlElement(name="MsgId") private String msgId; //消息ID号 事件推送群发结果

<xml>
<ToUserName><![CDATA[gh_4d00ed8d6399]]></ToUserName>
<FromUserName><![CDATA[oV5CrjpxgaGXNHIQigzNlgLTnwic]]></FromUserName>
<CreateTime>1481013459</CreateTime>
<MsgType><![CDATA[event]]></MsgType>
<Event><![CDATA[MASSSENDJOBFINISH]]></Event>
**

<MsgID>1000001625</MsgID>

**

<Status><![CDATA[err(30003)]]></Status>
<TotalCount>0</TotalCount>
<FilterCount>0</FilterCount>
<SentCount>0</SentCount>
<ErrorCount>0</ErrorCount>
<CopyrightCheckResult>
<Count>2</Count>
<ResultList>
liyiorg commented 7 years ago

返回的事件类型消息一般都使用MsgId,个别事件类型会使用 MsgID 返回。下版本会处理该问题

liyiorg commented 7 years ago

2.8.13 已更新