fix: 修正获取最近分数的条件逻辑,确保记录数量的比较正确

This commit is contained in:
lixiangwuxian 2025-04-12 21:35:12 +08:00
parent 768ec1504f
commit 6ae132a9c5

View File

@ -355,7 +355,7 @@ func (ss *ssQuery) GetRecentScores(count int, qqId string) ([]RecordDataLite, er
}
scores := response.Data
for _, score := range scores {
if len(records) > count {
if len(records) >= count {
break
}
record := RecordDataLite{