From 3f98b6c214d594b78468a1e2e9ac2eaacb8a822e Mon Sep 17 00:00:00 2001 From: LambdaYH Date: Fri, 19 May 2023 19:48:15 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20=E4=BF=AE=E5=A4=8Dff14=E5=85=AC?= =?UTF-8?q?=E5=91=8A=E9=93=BE=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nonebot_bison/platform/ff14.py | 2 +- tests/platforms/test_ff14.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nonebot_bison/platform/ff14.py b/nonebot_bison/platform/ff14.py index f549046..61ebc24 100644 --- a/nonebot_bison/platform/ff14.py +++ b/nonebot_bison/platform/ff14.py @@ -28,7 +28,7 @@ class FF14(NewMessage): async def get_sub_list(self, _) -> list[RawPost]: raw_data = await self.client.get( - "https://ff.web.sdo.com/inc/newdata.ashx?url=List?gameCode=ff&category=5309,5310,5311,5312,5313&pageIndex=0&pageSize=5" + "https://cqnews.web.sdo.com/api/news/newsList?gameCode=ff&CategoryCode=5309,5310,5311,5312,5313&pageIndex=0&pageSize=5" ) return raw_data.json()["Data"] diff --git a/tests/platforms/test_ff14.py b/tests/platforms/test_ff14.py index 5798071..98bdeca 100644 --- a/tests/platforms/test_ff14.py +++ b/tests/platforms/test_ff14.py @@ -30,7 +30,7 @@ async def test_fetch_new( ff14, dummy_user_subinfo, ff14_newdata_json_0, ff14_newdata_json_1 ): newdata = respx.get( - "https://ff.web.sdo.com/inc/newdata.ashx?url=List?gameCode=ff&category=5309,5310,5311,5312,5313&pageIndex=0&pageSize=5" + "https://cqnews.web.sdo.com/api/news/newsList?gameCode=ff&CategoryCode=5309,5310,5311,5312,5313&pageIndex=0&pageSize=5" ) newdata.mock(return_value=Response(200, json=ff14_newdata_json_0)) target = ""