Skip to content

Commit 1cab345

Browse files
committed
fix(background): 更新 lccn.lbao.site 的 api 地址
1 parent 71c4edd commit 1cab345

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

src/background/utils/lbaoAPI.ts

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,17 @@ export const lbaoPredictorApi = async (
1313
users: { data_region: string; username: string }[],
1414
retry = 5
1515
): Promise<LbaoPredictorType[]> => {
16-
const res = await fetch('https://lccn.lbao.site/predict_records', {
17-
method: 'POST',
18-
body: JSON.stringify({
19-
contest_name,
20-
users,
21-
}),
22-
headers: { 'content-type': 'application/json' },
23-
})
16+
const res = await fetch(
17+
'https://lccn.lbao.site/api/v1/contest-records/predicted-rating',
18+
{
19+
method: 'POST',
20+
body: JSON.stringify({
21+
contest_name,
22+
users,
23+
}),
24+
headers: { 'content-type': 'application/json' },
25+
}
26+
)
2427
if (retry && res.status === 503) {
2528
await sleep(2000)
2629
return lbaoPredictorApi(contest_name, users, retry - 1)

0 commit comments

Comments
 (0)