From 6c06c052337ee90ae0ede751ea0954674cfc06c4 Mon Sep 17 00:00:00 2001 From: silenceper Date: Sat, 30 May 2020 13:32:11 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=B8=80=E4=B8=AA=20Template?= =?UTF-8?q?MsgID=EF=BC=8C=E9=80=82=E9=85=8D=E5=BE=AE=E4=BF=A1=E5=BE=AE?= =?UTF-8?q?=E4=BF=A1msgID=E5=92=8CmsgId=E9=97=AE=E9=A2=98=20(#266)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 添加TODO:待完善接口 * 【模板消息】将message.DataItem改为message.TemplateDataItem * fix PKG.DEV * 增加一个 SetRedisPool 方法 * fix:模板消息推送增加一个TemplateMsgID --- officialaccount/message/message.go | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/officialaccount/message/message.go b/officialaccount/message/message.go index ecd798e..ecb6f20 100644 --- a/officialaccount/message/message.go +++ b/officialaccount/message/message.go @@ -89,20 +89,21 @@ type MixMessage struct { CommonToken //基本消息 - MsgID int64 `xml:"MsgId"` - Content string `xml:"Content"` - Recognition string `xml:"Recognition"` - PicURL string `xml:"PicUrl"` - MediaID string `xml:"MediaId"` - Format string `xml:"Format"` - ThumbMediaID string `xml:"ThumbMediaId"` - LocationX float64 `xml:"Location_X"` - LocationY float64 `xml:"Location_Y"` - Scale float64 `xml:"Scale"` - Label string `xml:"Label"` - Title string `xml:"Title"` - Description string `xml:"Description"` - URL string `xml:"Url"` + MsgID int64 `xml:"MsgId"` //其他消息推送过来是MsgId + TemplateMsgID int64 `xml:"MsgID"` //模板消息推送成功的消息是MsgID + Content string `xml:"Content"` + Recognition string `xml:"Recognition"` + PicURL string `xml:"PicUrl"` + MediaID string `xml:"MediaId"` + Format string `xml:"Format"` + ThumbMediaID string `xml:"ThumbMediaId"` + LocationX float64 `xml:"Location_X"` + LocationY float64 `xml:"Location_Y"` + Scale float64 `xml:"Scale"` + Label string `xml:"Label"` + Title string `xml:"Title"` + Description string `xml:"Description"` + URL string `xml:"Url"` //事件相关 Event EventType `xml:"Event"`