尝试修复其他面板兼容问题

This commit is contained in:
wyx2685 2024-09-03 01:03:37 +09:00
parent ea0b7d8f40
commit 7184e49650
No known key found for this signature in database
GPG Key ID: 8827A30FF1DB1379

View File

@ -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
}