fix: 修正获取最近分数的条件逻辑,确保记录数量的比较正确
This commit is contained in:
parent
768ec1504f
commit
6ae132a9c5
@ -355,7 +355,7 @@ func (ss *ssQuery) GetRecentScores(count int, qqId string) ([]RecordDataLite, er
|
|||||||
}
|
}
|
||||||
scores := response.Data
|
scores := response.Data
|
||||||
for _, score := range scores {
|
for _, score := range scores {
|
||||||
if len(records) > count {
|
if len(records) >= count {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
record := RecordDataLite{
|
record := RecordDataLite{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user