mirror of
https://github.com/silenceper/wechat.git
synced 2026-02-12 08:42:28 +08:00
企业微信内部开发API:消息推送》接收消息与事件》事件格式》模板卡片事件推送
This commit is contained in:
@@ -71,7 +71,7 @@ type resTemplateSend struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//Send 发送应用消息
|
//Send 发送应用消息
|
||||||
func (tpl *App) Send(msg *AppMessage) (msgID string, err error) {
|
func (tpl *App) Send(msg *AppMessage) (msgID string, responseCode string, err error) {
|
||||||
var accessToken string
|
var accessToken string
|
||||||
accessToken, err = tpl.GetAccessToken()
|
accessToken, err = tpl.GetAccessToken()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@@ -96,6 +96,7 @@ func (tpl *App) Send(msg *AppMessage) (msgID string, err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
msgID = result.MsgID
|
msgID = result.MsgID
|
||||||
|
responseCode = result.ResponseCode
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user