From 0bb502faba3a80d8c8099a8419ebf825485eb527 Mon Sep 17 00:00:00 2001 From: lixiangwuxian Date: Sun, 4 May 2025 00:33:36 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=AD=A3=20FetchCountryLeaderb?= =?UTF-8?q?oard=20=E5=87=BD=E6=95=B0=E4=B8=AD=20offset=20=E5=8F=82?= =?UTF-8?q?=E6=95=B0=E7=9A=84=E8=AE=A1=E7=AE=97=E9=80=BB=E8=BE=91=EF=BC=8C?= =?UTF-8?q?=E7=A1=AE=E4=BF=9D=E6=AD=A3=E7=A1=AE=E5=88=86=E9=A1=B5=E8=AF=B7?= =?UTF-8?q?=E6=B1=82=E7=8E=A9=E5=AE=B6=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- service/beatleader/user_info.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service/beatleader/user_info.go b/service/beatleader/user_info.go index c23d904..6efafa0 100644 --- a/service/beatleader/user_info.go +++ b/service/beatleader/user_info.go @@ -72,7 +72,7 @@ func FetchCountryLeaderboard(country string, offset int, userId string) ([]Playe if offset < 1 { offset = 1 } - url := fmt.Sprintf("https://api.beatleader.com/players?leaderboardContext=general&page=%d&count=50&sortBy=pp&mapsType=ranked&ppType=general&order=desc&countries=%s", offset/50+1, country) + url := fmt.Sprintf("https://api.beatleader.com/players?leaderboardContext=general&page=%d&count=50&sortBy=pp&mapsType=ranked&ppType=general&order=desc&countries=%s", (offset-1)/50+1, country) // 创建请求 req, err := http.NewRequest("GET", url, nil)