Skip to content

Commit

Permalink
尝试修复其他面板兼容问题
Browse files Browse the repository at this point in the history
  • Loading branch information
wyx2685 committed Sep 2, 2024
1 parent ea0b7d8 commit 7184e49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/panel/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 7184e49

Please sign in to comment.