fix: 修正 FetchCountryLeaderboard 函数中的分页计算逻辑,确保正确计算页面编号
This commit is contained in:
parent
7cf39101f0
commit
20c615070f
@ -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)
|
||||
|
||||
// 创建请求
|
||||
|
Loading…
x
Reference in New Issue
Block a user