mirror of
https://github.com/silenceper/wechat.git
synced 2026-02-11 00:02:27 +08:00
增加一个 TemplateMsgID,适配微信微信msgID和msgId问题 (#266)
* 添加TODO:待完善接口 * 【模板消息】将message.DataItem改为message.TemplateDataItem * fix PKG.DEV * 增加一个 SetRedisPool 方法 * fix:模板消息推送增加一个TemplateMsgID
This commit is contained in:
@@ -89,20 +89,21 @@ type MixMessage struct {
|
|||||||
CommonToken
|
CommonToken
|
||||||
|
|
||||||
//基本消息
|
//基本消息
|
||||||
MsgID int64 `xml:"MsgId"`
|
MsgID int64 `xml:"MsgId"` //其他消息推送过来是MsgId
|
||||||
Content string `xml:"Content"`
|
TemplateMsgID int64 `xml:"MsgID"` //模板消息推送成功的消息是MsgID
|
||||||
Recognition string `xml:"Recognition"`
|
Content string `xml:"Content"`
|
||||||
PicURL string `xml:"PicUrl"`
|
Recognition string `xml:"Recognition"`
|
||||||
MediaID string `xml:"MediaId"`
|
PicURL string `xml:"PicUrl"`
|
||||||
Format string `xml:"Format"`
|
MediaID string `xml:"MediaId"`
|
||||||
ThumbMediaID string `xml:"ThumbMediaId"`
|
Format string `xml:"Format"`
|
||||||
LocationX float64 `xml:"Location_X"`
|
ThumbMediaID string `xml:"ThumbMediaId"`
|
||||||
LocationY float64 `xml:"Location_Y"`
|
LocationX float64 `xml:"Location_X"`
|
||||||
Scale float64 `xml:"Scale"`
|
LocationY float64 `xml:"Location_Y"`
|
||||||
Label string `xml:"Label"`
|
Scale float64 `xml:"Scale"`
|
||||||
Title string `xml:"Title"`
|
Label string `xml:"Label"`
|
||||||
Description string `xml:"Description"`
|
Title string `xml:"Title"`
|
||||||
URL string `xml:"Url"`
|
Description string `xml:"Description"`
|
||||||
|
URL string `xml:"Url"`
|
||||||
|
|
||||||
//事件相关
|
//事件相关
|
||||||
Event EventType `xml:"Event"`
|
Event EventType `xml:"Event"`
|
||||||
|
|||||||
Reference in New Issue
Block a user