- add request UserAgent

master v1.0.30
李光春 2 years ago
parent 7eb51ea505
commit ab0ff7b934

@ -3,5 +3,5 @@ package wechatopen
const (
apiUrl = "https://api.weixin.qq.com"
logTable = "wechatopen"
Version = "1.0.29"
Version = "1.0.30"
)

@ -19,6 +19,9 @@ func (c *Client) request(ctx context.Context, url string, params map[string]inte
// 设置格式
client.SetContentTypeJson()
// 设置用户代理
client.SetUserAgent(gorequest.GetRandomUserAgentSystem())
// 设置参数
client.SetParams(params)

Loading…
Cancel
Save