fix: 为 BeatLeader 和 ScoreSaber 的歌曲哈希查询添加空输入处理
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user