mirror of
https://github.com/silenceper/wechat.git
synced 2026-02-04 12:52:27 +08:00
@@ -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