From 1505844fa37bbfc1bd9d452ea582be0652e05ad5 Mon Sep 17 00:00:00 2001 From: lixiangwuxian Date: Sat, 8 Mar 2025 21:06:34 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=B8=BA=20BeatLeader=20=E5=92=8C=20Sco?= =?UTF-8?q?reSaber=20=E7=9A=84=E6=AD=8C=E6=9B=B2=E5=93=88=E5=B8=8C?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E6=B7=BB=E5=8A=A0=E7=A9=BA=E8=BE=93=E5=85=A5?= =?UTF-8?q?=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- service/beatleader/bind_bl.go | 3 +++ service/scoresaber/bind_ss.go | 3 +++ 2 files changed, 6 insertions(+) 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