mirror of
https://github.com/silenceper/wechat.git
synced 2026-03-01 00:35:26 +08:00
1 parent
da5067bcb2
commit
3f1c5e7637
25 files changed
+175
-382
No files matched your search
@@ -99,11 +99,9 @@ func (r *Client) Send(apiName string, request interface{}) (*SendResponse, error
|
||||
}
|
||||
// 按照结构体解析返回值
|
||||
result := &SendResponse{}
|
||||
if err = util.DecodeWithError(response, result, apiName); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
err = util.DecodeWithError(response, result, apiName)
|
||||
// 返回数据
|
||||
return result, nil
|
||||
return result, err
|
||||
}
|
||||
|
||||
// SendText 发送文本消息
|
||||
|
||||
Reference in new issue
Block a user