1
0
mirror of https://github.com/silenceper/wechat.git synced 2026-02-04 12:52:27 +08:00

企业微信-移除可省略的错误判断 (#734)

Co-authored-by: markwang <www.wang61@qq.com>
This commit is contained in:
markwang
2023-10-10 19:31:23 +08:00
committed by GitHub
parent da5067bcb2
commit 3f1c5e7637
25 changed files with 175 additions and 382 deletions

View File

@@ -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 发送文本消息