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