From 7184e496505330b20676fee53a752cb5fbcc15ac Mon Sep 17 00:00:00 2001 From: wyx2685 Date: Tue, 3 Sep 2024 01:03:37 +0900 Subject: [PATCH] =?UTF-8?q?=E5=B0=9D=E8=AF=95=E4=BF=AE=E5=A4=8D=E5=85=B6?= =?UTF-8?q?=E4=BB=96=E9=9D=A2=E6=9D=BF=E5=85=BC=E5=AE=B9=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 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 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 }