From 1cab3456f8e3eed3d88a34e6b4b1e9023030ec02 Mon Sep 17 00:00:00 2001 From: XYShaoKang <38753204+XYShaoKang@users.noreply.github.com> Date: Sat, 4 Nov 2023 12:40:43 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix(background):=20=E6=9B=B4=E6=96=B0=20lcc?= =?UTF-8?q?n.lbao.site=20=E7=9A=84=20api=20=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/background/utils/lbaoAPI.ts | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) 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) From 7159f003d1948b3cc8a99dcf329a0e322d28424c Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 4 Nov 2023 04:42:39 +0000 Subject: [PATCH 2/2] chore(release): 0.13.4 [skip ci] --- CHANGELOG.md | 7 +++++++ package.json | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) 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", 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