From d10db08395e6eb5d1e8e124484523774d212bd12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B4=9B=E6=A2=A7=E8=97=A4?= <67498817+phidiaLam@users.noreply.github.com> Date: Wed, 6 Nov 2024 16:47:55 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20=E5=B0=8F=E5=88=BB=E9=A3=9F=E5=A0=82cdn?= =?UTF-8?q?=E4=BD=BF=E7=94=A8https=20(#650)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nonebot_bison/platform/ceobecanteen/const.py | 2 +- tests/platforms/test_ceobecanteen.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nonebot_bison/platform/ceobecanteen/const.py b/nonebot_bison/platform/ceobecanteen/const.py index ef970a4..ba8ac5f 100644 --- a/nonebot_bison/platform/ceobecanteen/const.py +++ b/nonebot_bison/platform/ceobecanteen/const.py @@ -1,4 +1,4 @@ DATASOURCE_URL = "https://server.ceobecanteen.top/api/v1/canteen/config/datasource/list" COMB_ID_URL = "https://server.ceobecanteen.top/api/v1/canteen/user/getDatasourceComb" -COOKIE_ID_URL = "http://cdn.ceobecanteen.top/datasource-comb" +COOKIE_ID_URL = "https://cdn.ceobecanteen.top/datasource-comb" COOKIES_URL = "https://server-cdn.ceobecanteen.top/api/v1/cdn/cookie/mainList/cookieList" diff --git a/tests/platforms/test_ceobecanteen.py b/tests/platforms/test_ceobecanteen.py index 5820aff..d2e3988 100644 --- a/tests/platforms/test_ceobecanteen.py +++ b/tests/platforms/test_ceobecanteen.py @@ -166,7 +166,7 @@ async def test_batch_fetch_new_with_single( targets_router = respx.get("https://server.ceobecanteen.top/api/v1/canteen/config/datasource/list") comb_id_router = respx.post("https://server.ceobecanteen.top/api/v1/canteen/user/getDatasourceComb") - cookie_id_router = respx.get("http://cdn.ceobecanteen.top/datasource-comb/2") + cookie_id_router = respx.get("https://cdn.ceobecanteen.top/datasource-comb/2") cookies_router = respx.get("https://server-cdn.ceobecanteen.top/api/v1/cdn/cookie/mainList/cookieList") targets_router.mock(return_value=Response(200, json=ceobecanteen_targets, headers=mock_respone_headers))