fix: 优化 BeatLeader 最近成绩获取的 API 请求参数
This commit is contained in:
parent
f151d08473
commit
64dd6d6e9b
@ -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&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)
|
fullUrl := fmt.Sprintf(historyUrl, blId, count)
|
||||||
resp, err := http.Get(fullUrl)
|
resp, err := http.Get(fullUrl)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user