mirror of
https://github.com/suyiiyii/nonebot-bison.git
synced 2025-06-07 12:23:00 +08:00
🐛 修复ff14公告链接
This commit is contained in:
parent
56d15d0ea8
commit
3f98b6c214
@ -28,7 +28,7 @@ class FF14(NewMessage):
|
|||||||
|
|
||||||
async def get_sub_list(self, _) -> list[RawPost]:
|
async def get_sub_list(self, _) -> list[RawPost]:
|
||||||
raw_data = await self.client.get(
|
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"]
|
return raw_data.json()["Data"]
|
||||||
|
|
||||||
|
@ -30,7 +30,7 @@ async def test_fetch_new(
|
|||||||
ff14, dummy_user_subinfo, ff14_newdata_json_0, ff14_newdata_json_1
|
ff14, dummy_user_subinfo, ff14_newdata_json_0, ff14_newdata_json_1
|
||||||
):
|
):
|
||||||
newdata = respx.get(
|
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))
|
newdata.mock(return_value=Response(200, json=ff14_newdata_json_0))
|
||||||
target = ""
|
target = ""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user