fix: 优化 BeatLeader 最近成绩获取的 API 请求参数

This commit is contained in:
lixiangwuxian 2025-03-08 20:02:34 +08:00
parent f151d08473
commit 64dd6d6e9b

View File

@ -324,7 +324,7 @@ func (bl *blQuery) GetRecentScores(count int, qqId string) ([]RecordDataLite, er
return nil, err
}
//从线上获取
historyUrl := "https://api.beatleader.xyz/player/%s/scores?count=%d&sortBy=date&order=desc"
historyUrl := "https://api.beatleader.xyz/player/%s/scores?count=%d&leaderboardContext=general&page=1&sortBy=date&order=desc&search=&diff=&mode=&requirements=&type=&hmd=&modifiers=&stars_from=&stars_to=&eventId=&includeIO=true"
fullUrl := fmt.Sprintf(historyUrl, blId, count)
resp, err := http.Get(fullUrl)
if err != nil {