diff --git a/api/panel/user.go b/api/panel/user.go index df9cc50..edf9228 100644 --- a/api/panel/user.go +++ b/api/panel/user.go @@ -60,7 +60,7 @@ func (c *Client) GetUserAlive() (map[int]int, error) { r, err := c.client.R(). ForceContentType("application/json"). Get(path) - if err != nil { + if err != nil || r.StatusCode() >= 399 { return make(map[int]int), nil }