fix: 精简 BeatLeader 最近成绩 API 请求参数

This commit is contained in:
lixiangwuxian 2025-03-08 20:05:21 +08:00
parent 64dd6d6e9b
commit 7dbdaed21f

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&leaderboardContext=general&page=1&sortBy=date&order=desc&search=&diff=&mode=&requirements=&type=&hmd=&modifiers=&stars_from=&stars_to=&eventId=&includeIO=true"
historyUrl := "https://api.beatleader.xyz/player/%s/scores?leaderboardContext=general&page=1&sortBy=date&order=desc&includeIO=true&count=%d"
fullUrl := fmt.Sprintf(historyUrl, blId, count)
resp, err := http.Get(fullUrl)
if err != nil {