fix: 修正 FetchCountryLeaderboard 函数中的分页计算逻辑,确保正确计算页面编号

This commit is contained in:
lixiangwuxian 2025-04-02 00:17:22 +08:00
parent 7cf39101f0
commit 20c615070f

View File

@ -143,7 +143,7 @@ func FetchCountryLeaderboard(country string, offset int, ssID string) (Leaderboa
if offset < 0 {
offset = 0
}
page := offset/50 + 1
page := offset / 50
url := fmt.Sprintf("https://scoresaber.com/api/players?countries=%s&page=%d", country, page)
// 创建请求