diff --git a/service/scoresaber/bind_ss.go b/service/scoresaber/bind_ss.go index 8b957a7..fb69f6b 100644 --- a/service/scoresaber/bind_ss.go +++ b/service/scoresaber/bind_ss.go @@ -411,6 +411,9 @@ func GetSongIdsByHash(hashs []string) (hashToSongId map[string]string, err error return nil, err } defer resp.Body.Close() + if resp.StatusCode != 200 { + return nil, fmt.Errorf("获取歌曲ID失败,状态码:%d,url:%s", resp.StatusCode, queryUrl) + } body, err := io.ReadAll(resp.Body) if err != nil { return nil, err