Skip to content

Commit 2c9ac82

Browse files
committed
debug mode
1 parent ad8a459 commit 2c9ac82

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎internal/client/client.go‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,10 @@ func (c *Client) Do(ctx context.Context, req *Request) (*Response, error) {
176176
req.AddQuery("access_token", token)
177177
}
178178

179+
if c.debug {
180+
req.AddQuery("debug", "1")
181+
}
182+
179183
// 4. 构建 HTTP 请求
180184
httpReq, err := req.BuildHTTPRequest(ctx, c.baseURL)
181185
if err != nil {

0 commit comments

Comments
 (0)