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))