diff --git a/service/beatleader/bind_bl.go b/service/beatleader/bind_bl.go index b2b86c0..276dde2 100644 --- a/service/beatleader/bind_bl.go +++ b/service/beatleader/bind_bl.go @@ -368,6 +368,9 @@ func (bl *blQuery) GetRecentScores(count int, qqId string) ([]RecordDataLite, er } func GetSongIdsByHash(hashs []string) (hashToSongId map[string]string, err error) { + if len(hashs) == 0 { + return nil, nil + } //每批最多49个 hashToSongId = make(map[string]string) batchSize := 49 diff --git a/service/scoresaber/bind_ss.go b/service/scoresaber/bind_ss.go index fb69f6b..61ca9ba 100644 --- a/service/scoresaber/bind_ss.go +++ b/service/scoresaber/bind_ss.go @@ -396,6 +396,9 @@ func (ss *ssQuery) GetRecentScores(count int, qqId string) ([]RecordDataLite, er } func GetSongIdsByHash(hashs []string) (hashToSongId map[string]string, err error) { + if len(hashs) == 0 { + return nil, nil + } //每批最多49个 hashToSongId = make(map[string]string) batchSize := 49