mirror of
https://github.com/wyx2685/V2bX.git
synced 2025-02-08 17:18:13 -05:00
fix report api
This commit is contained in:
parent
182fa7ade2
commit
a3717c1e63
@ -60,7 +60,7 @@ func (c *Client) ReportUserTraffic(userTraffic []UserTraffic) error {
|
|||||||
for i := range userTraffic {
|
for i := range userTraffic {
|
||||||
data[userTraffic[i].UID] = []int64{userTraffic[i].Upload, userTraffic[i].Download}
|
data[userTraffic[i].UID] = []int64{userTraffic[i].Upload, userTraffic[i].Download}
|
||||||
}
|
}
|
||||||
const path = "/api/v1/server/UniProxy/user"
|
const path = "/api/v1/server/UniProxy/push"
|
||||||
res, err := c.client.R().
|
res, err := c.client.R().
|
||||||
SetBody(userTraffic).
|
SetBody(userTraffic).
|
||||||
ForceContentType("application/json").
|
ForceContentType("application/json").
|
||||||
|
Loading…
Reference in New Issue
Block a user