diff --git a/const.go b/const.go index 109b96e..e050270 100644 --- a/const.go +++ b/const.go @@ -17,4 +17,4 @@ const ( logTable = "kashangwl" ) -const Version = "1.0.15" +const Version = "1.0.16" diff --git a/request.go b/request.go index 8a7cbc0..9e8f3c4 100644 --- a/request.go +++ b/request.go @@ -24,6 +24,9 @@ func (c *Client) request(ctx context.Context, url string, params map[string]inte // 设置格式 client.SetContentTypeJson() + // 设置用户代理 + client.SetUserAgent(gorequest.GetRandomUserAgentSystem()) + // 设置参数 client.SetParams(params)