diff --git a/CHANGELOG.md b/CHANGELOG.md index e67cbd2..ea710c8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +## [0.13.4](https://github.com/XYShaoKang/refined-leetcode/compare/v0.13.3...v0.13.4) (2023-11-04) + + +### Bug Fixes + +* **background:** 更新 lccn.lbao.site 的 api 地址 ([1cab345](https://github.com/XYShaoKang/refined-leetcode/commit/1cab3456f8e3eed3d88a34e6b4b1e9023030ec02)) + ## [0.13.3](https://github.com/XYShaoKang/refined-leetcode/compare/v0.13.2...v0.13.3) (2023-10-14) diff --git a/package.json b/package.json index 7993eb6..8f8e764 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "refined-leetcode", - "version": "0.13.3", + "version": "0.13.4", "main": "index.js", "author": "XYShaoKang", "license": "MIT", diff --git a/src/background/utils/lbaoAPI.ts b/src/background/utils/lbaoAPI.ts index b3b6e64..6b50ef5 100644 --- a/src/background/utils/lbaoAPI.ts +++ b/src/background/utils/lbaoAPI.ts @@ -13,14 +13,17 @@ export const lbaoPredictorApi = async ( users: { data_region: string; username: string }[], retry = 5 ): Promise => { - const res = await fetch('https://lccn.lbao.site/predict_records', { - method: 'POST', - body: JSON.stringify({ - contest_name, - users, - }), - headers: { 'content-type': 'application/json' }, - }) + const res = await fetch( + 'https://lccn.lbao.site/api/v1/contest-records/predicted-rating', + { + method: 'POST', + body: JSON.stringify({ + contest_name, + users, + }), + headers: { 'content-type': 'application/json' }, + } + ) if (retry && res.status === 503) { await sleep(2000) return lbaoPredictorApi(contest_name, users, retry - 1) pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy