fix: 优化 BeatLeader 最近成绩获取的排序参数

This commit is contained in:
lixiangwuxian 2025-03-08 19:58:27 +08:00
parent f02b00fb6a
commit f151d08473

View File

@ -324,7 +324,7 @@ func (bl *blQuery) GetRecentScores(count int, qqId string) ([]RecordDataLite, er
return nil, err return nil, err
} }
//从线上获取 //从线上获取
historyUrl := "https://api.beatleader.xyz/player/%s/scores?count=%d" historyUrl := "https://api.beatleader.xyz/player/%s/scores?count=%d&sortBy=date&order=desc"
fullUrl := fmt.Sprintf(historyUrl, blId, count) fullUrl := fmt.Sprintf(historyUrl, blId, count)
resp, err := http.Get(fullUrl) resp, err := http.Get(fullUrl)
if err != nil { if err != nil {