lanrion / weixin_rails_middleware

微信集成 ruby weixin_rails_middleware for integration weixin.
MIT License
408 stars 107 forks source link

小视频消息 #38

Closed josephktcheung closed 9 years ago

josephktcheung commented 9 years ago

微信接收普通消息api多了一种小视频消息,现在没法正确传递到server,会出现ArgumentError (Unknown Weixin Message)

<xml>
<ToUserName><![CDATA[toUser]]></ToUserName>
<FromUserName><![CDATA[fromUser]]></FromUserName>
<CreateTime>1357290913</CreateTime>
<MsgType><![CDATA[shortvideo]]></MsgType>
<MediaId><![CDATA[media_id]]></MediaId>
<ThumbMediaId><![CDATA[thumb_media_id]]></ThumbMediaId>
<MsgId>1234567890123456</MsgId>
</xml>
lanrion commented 9 years ago

小视频消息,即微视频吧,属于新的消息类型。 此问题,已修复: https://github.com/lanrion/weixin_rails_middleware/commit/1b9f76e00445b6f2b6a6864ac4f3e696071eec4b

请使用 master分支实现你的功能,如仍然有bug,请及时反馈。请前往: http://weixin-dev.com/

greatghoul commented 9 years ago

:+1: