From a3717c1e6357d49b7950cbc5d579b218b4a7a0eb Mon Sep 17 00:00:00 2001 From: Yuzuki <50410851+Yuzuki616@users.noreply.github.com> Date: Wed, 21 Dec 2022 03:49:34 +0800 Subject: [PATCH] fix report api --- api/panel/user.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/panel/user.go b/api/panel/user.go index 4d9b85d..41f6887 100644 --- a/api/panel/user.go +++ b/api/panel/user.go @@ -60,7 +60,7 @@ func (c *Client) ReportUserTraffic(userTraffic []UserTraffic) error { for i := range userTraffic { 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(). SetBody(userTraffic). ForceContentType("application/json").