fix report bug

This commit is contained in:
Yuzuki999
2022-12-23 01:52:44 +08:00
parent a3717c1e63
commit b07c9f0b6b
3 changed files with 24 additions and 11 deletions

View File

@@ -62,7 +62,7 @@ func (c *Client) ReportUserTraffic(userTraffic []UserTraffic) error {
}
const path = "/api/v1/server/UniProxy/push"
res, err := c.client.R().
SetBody(userTraffic).
SetBody(data).
ForceContentType("application/json").
Post(path)
err = c.checkResponse(res, path, err)