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 = ""