fix: 修复 ScoreSaber 最近成绩获取的索引边界问题
This commit is contained in:
parent
d68f9c0e89
commit
5750128f60
@ -338,7 +338,7 @@ func (ss *ssQuery) GetRecentScores(count int, qqId string) ([]RecordDataLite, er
|
||||
scores := response.Data
|
||||
records := make([]RecordDataLite, 0)
|
||||
for k, score := range scores {
|
||||
if k > count {
|
||||
if k > count-1 {
|
||||
break
|
||||
}
|
||||
record := RecordDataLite{
|
||||
|
Loading…
x
Reference in New Issue
Block a user