diff --git a/service/beatleader/bind_bl.go b/service/beatleader/bind_bl.go index 47926c9..b2b86c0 100644 --- a/service/beatleader/bind_bl.go +++ b/service/beatleader/bind_bl.go @@ -369,6 +369,7 @@ func (bl *blQuery) GetRecentScores(count int, qqId string) ([]RecordDataLite, er func GetSongIdsByHash(hashs []string) (hashToSongId map[string]string, err error) { //每批最多49个 + hashToSongId = make(map[string]string) batchSize := 49 for i := 0; i < len(hashs); i += batchSize { end := i + batchSize diff --git a/service/scoresaber/bind_ss.go b/service/scoresaber/bind_ss.go index 227b6e0..2b7a018 100644 --- a/service/scoresaber/bind_ss.go +++ b/service/scoresaber/bind_ss.go @@ -397,6 +397,7 @@ func (ss *ssQuery) GetRecentScores(count int, qqId string) ([]RecordDataLite, er func GetSongIdsByHash(hashs []string) (hashToSongId map[string]string, err error) { //每批最多49个 + hashToSongId = make(map[string]string) batchSize := 49 for i := 0; i < len(hashs); i += batchSize { end := i + batchSize