尝试修复在线设备数上报后有概率被限制链接

This commit is contained in:
wyx2685
2024-08-31 16:02:50 +09:00
parent 173c48a76f
commit 8d7168c6a4
4 changed files with 11 additions and 20 deletions

View File

@@ -101,8 +101,7 @@ func (c *Client) ReportUserTraffic(userTraffic []UserTraffic) error {
return nil
}
func (c *Client) ReportNodeOnlineUsers(data *map[int][]string, reportOnline *map[int]int) error {
c.LastReportOnline = *reportOnline
func (c *Client) ReportNodeOnlineUsers(data *map[int][]string) error {
const path = "/api/v1/server/UniProxy/alive"
r, err := c.client.R().
SetBody(data).