适配明日方舟新版公告栏API (#305)

* 🔨 适配明日方舟新版公告栏API

*  更新测试

* 💄 auto fix by pre-commit hooks

---------

Co-authored-by: GuGuMur <222153315@qq.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
Cateon Huo 2023-07-27 12:13:23 +08:00 committed by GitHub
parent eea9f8edfc
commit fd3f0ddddc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 579 additions and 363 deletions

View File

@ -1,5 +1,5 @@
import json
from typing import Any from typing import Any
from pathlib import Path
from httpx import AsyncClient from httpx import AsyncClient
from nonebot.plugin import require from nonebot.plugin import require
@ -32,36 +32,45 @@ class Arknights(NewMessage):
return "明日方舟游戏信息" return "明日方舟游戏信息"
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://ak-webview.hypergryph.com/api/game/bulletinList?target=IOS")
"https://ak-conf.hypergryph.com/config/prod/announce_meta/IOS/announcement.meta.json" return raw_data.json()["data"]["list"]
)
return json.loads(raw_data.text)["announceList"]
def get_id(self, post: RawPost) -> Any: def get_id(self, post: RawPost) -> Any:
return post["announceId"] return post["cid"]
def get_date(self, _: RawPost) -> None: def get_date(self, _: RawPost) -> Any:
return None return None
def get_category(self, _) -> Category: def get_category(self, _) -> Category:
return Category(1) return Category(1)
async def parse(self, raw_post: RawPost) -> Post: async def parse(self, raw_post: RawPost) -> Post:
announce_url = raw_post["webUrl"] raw_data = await self.client.get(
text = "" f"https://ak-webview.hypergryph.com/api/game/bulletin/{self.get_id(post=raw_post)}"
raw_html = await self.client.get(announce_url) )
soup = bs(raw_html.text, "html.parser") raw_data = raw_data.json()["data"]
pics = []
if soup.find("div", class_="standerd-container"):
# 图文
require("nonebot_plugin_htmlrender")
from nonebot_plugin_htmlrender import capture_element
pic_data = await capture_element( announce_title = raw_data.get("header") if raw_data.get("header") != "" else raw_data.get("title")
announce_url, # text = "游戏公告更新:" + announce_title.replace('\n','')
"div.main", text = ""
viewport={"width": 320, "height": 6400},
device_scale_factor=3, pics = []
if "content" in raw_data:
require("nonebot_plugin_htmlrender")
from nonebot_plugin_htmlrender import template_to_pic
template_path = str(Path(__file__).parent.parent / "post/templates/ark_announce")
pic_data = await template_to_pic(
template_path=template_path,
template_name="index.html",
templates={
"announce_title": announce_title,
"content": raw_data["content"],
},
pages={
"viewport": {"width": 500, "height": 6400},
"base_url": f"file://{template_path}",
},
) )
# render = Render() # render = Render()
# viewport = {"width": 320, "height": 6400, "deviceScaleFactor": 3} # viewport = {"width": 320, "height": 6400, "deviceScaleFactor": 3}
@ -72,8 +81,8 @@ class Arknights(NewMessage):
pics.append(pic_data) pics.append(pic_data)
else: else:
text = "图片渲染失败" text = "图片渲染失败"
elif pic := soup.find("img", class_="banner-image"): elif "bannerImageUrl" in raw_data:
pics.append(pic["src"]) # type: ignore pics.append(raw_post["bannerImageUrl"]) # type: ignore
else: else:
raise CategoryNotRecognize("未找到可渲染部分") raise CategoryNotRecognize("未找到可渲染部分")
return Post( return Post(

View File

@ -0,0 +1,26 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta
name="viewport"
content="width=device-width, initial-scale=1, minimum-scale=1"
/>
<link rel="icon" href="data:;base64,=" />
<title>公告</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<div class="main">
<div class="container">
<div class="standerd-container">
<div class="head-title-container">
<span class="head-title">{{ announce_title }}</span>
</div>
<div class="content">{{ content }}</div>
</div>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,107 @@
/**
引用自 https://ak.hycdn.cn/announce/assets/css/announcement.v_0_1_2.css
**/
@media screen and (max-device-width: 480px) {
body {
-webkit-text-size-adjust: 100%;
}
}
html {
height: 100%;
}
body,
head {
margin: 0;
padding: 0;
}
body {
background-color: #313131;
min-height: 100%;
background-color: #d0d0cf;
}
.main {
max-width: 980px;
font-family: "Microsoft Yahei";
width: 100%;
margin: auto;
font-size: 1rem;
min-height: 100%;
}
.main .container {
min-height: 100%;
}
.main .container .standerd-container {
padding: 2.72727273%;
width: 94.54545455%;
margin: auto;
}
.main .container .standerd-container .banner-image-container {
margin-bottom: 0.8rem;
}
.main .container .standerd-container .banner-image-container .banner-image {
display: block;
width: 100%;
}
.main .container .standerd-container .head-title-container {
margin: 0;
background-image: url(
https://ak.hycdn.cn/announce/assets/images/announcement/header.jpg);
background-size: cover;
position: relative;
margin-bottom: 0.6rem;
}
.main .container .standerd-container .head-title-container::before {
content: "";
display: block;
width: 100%;
padding-top: 6.02564103%;
}
.main .container .standerd-container .head-title-container .head-title {
padding-left: 0.25rem;
color: #fff;
font-weight: 500;
overflow: hidden;
position: absolute;
top: 0;
width: 100%;
height: 100%;
box-sizing: border-box;
display: flex;
justify-content: center;
flex-direction: column;
font-size: 1rem;
}
.main .container .standerd-container .content {
line-height: 0.8rem;
font-size: 0.6rem;
}
.main .container .standerd-container .content h4 {
font-size: 110%;
margin-block-start: 0.5rem;
margin-block-end: 0.5rem;
}
.main .container .standerd-container .content p {
margin-block-start: 0.25rem;
margin-block-end: 0.25rem;
min-height: 0.8rem;
}
.main .container .standerd-container .content img {
max-width: 100%;
margin: auto;
display: block;
}
.main .container .banner-image-container.cover {
width: 100%;
height: 100%;
position: absolute;
overflow: hidden;
}
.main .container .banner-image-container.cover .cover-jumper {
width: 100%;
height: 100%;
display: block;
}
.main .container .banner-image-container.cover .banner-image {
width: 100%;
height: 100%;
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,90 +1,132 @@
{ {
"focusAnnounceId": "816", "code": 0,
"announceList": [ "msg": "",
{ "data": {
"announceId": "809", "list": [
"title": "冰原信使系列\n新装限时上架", {
"isWebUrl": true, "cid": "0525",
"webUrl": "https://ak.hycdn.cn/announce/IOS/announcement/809_1640060505.html", "title": "云间清醒梦\n限定寻访说明",
"day": 21, "category": 1,
"month": 12, "displayTime": "2023-07-23",
"group": "ACTIVITY" "updatedAt": 1689938897,
}, "sticky": false
{ },
"announceId": "810", {
"title": "寒武纪系列\n限时复刻上架", "cid": "4970",
"isWebUrl": true, "title": "软绵绵工坊\n网页活动进行中",
"webUrl": "https://ak.hycdn.cn/announce/IOS/announcement/810_1640060511.html", "category": 4,
"day": 21, "displayTime": "2023-07-23",
"month": 12, "updatedAt": 1690122403,
"group": "ACTIVITY" "sticky": false
}, },
{ {
"announceId": "806", "cid": "2009",
"title": "跨年欢庆·回首\n限时寻访说明", "title": "音律联觉\n录播正式上线",
"isWebUrl": true, "category": 4,
"webUrl": "https://ak.hycdn.cn/announce/IOS/announcement/806_1639379808.html", "displayTime": "2023-07-22",
"day": 14, "updatedAt": 1689999831,
"month": 12, "sticky": false
"group": "ACTIVITY" },
}, {
{ "cid": "1163",
"announceId": "802", "title": "常驻标准寻访\n限时出率上升",
"title": "「制作组通讯」\n#15期", "category": 1,
"isWebUrl": true, "displayTime": "2023-07-20",
"webUrl": "https://ak.hycdn.cn/announce/IOS/announcement/802_1638871766.html", "updatedAt": 1689747296,
"day": 8, "sticky": false
"month": 12, },
"group": "SYSTEM" {
}, "cid": "7639",
{ "title": "【沙洲引路人】\n限时寻访开启",
"announceId": "97", "category": 1,
"title": "新人寻访特惠\n必得六星干员", "displayTime": "2023-07-18",
"isWebUrl": true, "updatedAt": 1689592428,
"webUrl": "https://ak.hycdn.cn/announce/IOS/announcement/97_1606379786.html", "sticky": false
"day": 30, },
"month": 4, {
"group": "ACTIVITY" "cid": "4971",
}, "title": "时代系列\n新装限时上架",
{ "category": 1,
"announceId": "95", "displayTime": "2023-07-18",
"title": "通关特定关卡\n赠送专属时装", "updatedAt": 1689592322,
"isWebUrl": true, "sticky": false
"webUrl": "https://ak.hycdn.cn/announce/IOS/announcement/95_1606379781.html", },
"day": 30, {
"month": 4, "cid": "1172",
"group": "ACTIVITY" "title": "珊瑚海岸系列\n限时复刻上架",
}, "category": 1,
{ "displayTime": "2023-07-18",
"announceId": "192", "updatedAt": 1689592270,
"title": "《明日方舟》\n公测开启说明", "sticky": false
"isWebUrl": true, },
"webUrl": "https://ak.hycdn.cn/announce/IOS/announcement/192_1606379744.html", {
"day": 30, "cid": "7645",
"month": 4, "title": "宿于繁星\n联名礼盒开售",
"group": "SYSTEM" "category": 4,
}, "displayTime": "2023-07-14",
{ "updatedAt": 1689238086,
"announceId": "98", "sticky": false
"title": "《明日方舟》\n公平运营申明", },
"isWebUrl": true, {
"webUrl": "https://ak.hycdn.cn/announce/IOS/announcement/98_1638970453.html", "cid": "2017",
"day": 30, "title": "眠于树影之中\n系列周边开售",
"month": 4, "category": 4,
"group": "SYSTEM" "displayTime": "2023-07-14",
}, "updatedAt": 1689238029,
{ "sticky": false
"announceId": "94", },
"title": "常驻活动介绍", {
"isWebUrl": true, "cid": "0530",
"webUrl": "https://ak.hycdn.cn/announce/IOS/announcement/94_1606379757.html", "title": "UP主应援计划\n限时直播活动",
"day": 30, "category": 4,
"month": 4, "displayTime": "2023-07-13",
"group": "ACTIVITY" "updatedAt": 1689235574,
"sticky": false
},
{
"cid": "3453",
"title": "中坚寻访\n干员出率上升",
"category": 1,
"displayTime": "2023-07-13",
"updatedAt": 1689161228,
"sticky": false
},
{
"cid": "4989",
"title": "「绿野幻梦」\n复刻活动开启",
"category": 1,
"displayTime": "2023-07-12",
"updatedAt": 1689761635,
"sticky": false
},
{
"cid": "2037",
"title": "个人信息保护\n双清单查询指引",
"category": 2,
"displayTime": "2022-09-19",
"updatedAt": 1663316121,
"sticky": false
},
{
"cid": "7758",
"title": "《明日方舟》\n未成年护航指引",
"category": 2,
"displayTime": "2022-05-26",
"updatedAt": 1661249665,
"sticky": false
},
{
"cid": "0664",
"title": "《明日方舟》\n公平运营申明",
"category": 2,
"displayTime": "2019-04-30",
"updatedAt": 1678935570,
"sticky": false
}
],
"popup": {
"popupList": [],
"defaultPopup": "7639"
} }
],
"extra": {
"enable": false,
"name": "额外活动"
} }
} }

View File

@ -1,99 +1,140 @@
{ {
"focusAnnounceId": "816", "code": 0,
"announceList": [ "msg": "",
{ "data": {
"announceId": "807", "list": [
"title": "【雪融之诺】\n限时寻访开启", {
"isWebUrl": true, "cid": "5716",
"webUrl": "https://ak.hycdn.cn/announce/IOS/announcement/807_1640060583.html", "title": "「夏日嘉年华」\n活动即将开启",
"day": 21, "category": 1,
"month": 12, "displayTime": "2023-07-23",
"group": "ACTIVITY" "updatedAt": 1689938907,
}, "sticky": false
{ },
"announceId": "809", {
"title": "冰原信使系列\n新装限时上架", "cid": "0525",
"isWebUrl": true, "title": "云间清醒梦\n限定寻访说明",
"webUrl": "https://ak.hycdn.cn/announce/IOS/announcement/809_1640060505.html", "category": 1,
"day": 21, "displayTime": "2023-07-23",
"month": 12, "updatedAt": 1689938897,
"group": "ACTIVITY" "sticky": false
}, },
{ {
"announceId": "810", "cid": "4970",
"title": "寒武纪系列\n限时复刻上架", "title": "软绵绵工坊\n网页活动进行中",
"isWebUrl": true, "category": 4,
"webUrl": "https://ak.hycdn.cn/announce/IOS/announcement/810_1640060511.html", "displayTime": "2023-07-23",
"day": 21, "updatedAt": 1690122403,
"month": 12, "sticky": false
"group": "ACTIVITY" },
}, {
{ "cid": "2009",
"announceId": "806", "title": "音律联觉\n录播正式上线",
"title": "跨年欢庆·回首\n限时寻访说明", "category": 4,
"isWebUrl": true, "displayTime": "2023-07-22",
"webUrl": "https://ak.hycdn.cn/announce/IOS/announcement/806_1639379808.html", "updatedAt": 1689999831,
"day": 14, "sticky": false
"month": 12, },
"group": "ACTIVITY" {
}, "cid": "1163",
{ "title": "常驻标准寻访\n限时出率上升",
"announceId": "802", "category": 1,
"title": "「制作组通讯」\n#15期", "displayTime": "2023-07-20",
"isWebUrl": true, "updatedAt": 1689747296,
"webUrl": "https://ak.hycdn.cn/announce/IOS/announcement/802_1638871766.html", "sticky": false
"day": 8, },
"month": 12, {
"group": "SYSTEM" "cid": "7639",
}, "title": "【沙洲引路人】\n限时寻访开启",
{ "category": 1,
"announceId": "97", "displayTime": "2023-07-18",
"title": "新人寻访特惠\n必得六星干员", "updatedAt": 1689592428,
"isWebUrl": true, "sticky": false
"webUrl": "https://ak.hycdn.cn/announce/IOS/announcement/97_1606379786.html", },
"day": 30, {
"month": 4, "cid": "4971",
"group": "ACTIVITY" "title": "时代系列\n新装限时上架",
}, "category": 1,
{ "displayTime": "2023-07-18",
"announceId": "95", "updatedAt": 1689592322,
"title": "通关特定关卡\n赠送专属时装", "sticky": false
"isWebUrl": true, },
"webUrl": "https://ak.hycdn.cn/announce/IOS/announcement/95_1606379781.html", {
"day": 30, "cid": "1172",
"month": 4, "title": "珊瑚海岸系列\n限时复刻上架",
"group": "ACTIVITY" "category": 1,
}, "displayTime": "2023-07-18",
{ "updatedAt": 1689592270,
"announceId": "192", "sticky": false
"title": "《明日方舟》\n公测开启说明", },
"isWebUrl": true, {
"webUrl": "https://ak.hycdn.cn/announce/IOS/announcement/192_1606379744.html", "cid": "7645",
"day": 30, "title": "宿于繁星\n联名礼盒开售",
"month": 4, "category": 4,
"group": "SYSTEM" "displayTime": "2023-07-14",
}, "updatedAt": 1689238086,
{ "sticky": false
"announceId": "98", },
"title": "《明日方舟》\n公平运营申明", {
"isWebUrl": true, "cid": "2017",
"webUrl": "https://ak.hycdn.cn/announce/IOS/announcement/98_1638970453.html", "title": "眠于树影之中\n系列周边开售",
"day": 30, "category": 4,
"month": 4, "displayTime": "2023-07-14",
"group": "SYSTEM" "updatedAt": 1689238029,
}, "sticky": false
{ },
"announceId": "94", {
"title": "常驻活动介绍", "cid": "0530",
"isWebUrl": true, "title": "UP主应援计划\n限时直播活动",
"webUrl": "https://ak.hycdn.cn/announce/IOS/announcement/94_1606379757.html", "category": 4,
"day": 30, "displayTime": "2023-07-13",
"month": 4, "updatedAt": 1689235574,
"group": "ACTIVITY" "sticky": false
},
{
"cid": "3453",
"title": "中坚寻访\n干员出率上升",
"category": 1,
"displayTime": "2023-07-13",
"updatedAt": 1689161228,
"sticky": false
},
{
"cid": "4989",
"title": "「绿野幻梦」\n复刻活动开启",
"category": 1,
"displayTime": "2023-07-12",
"updatedAt": 1689761635,
"sticky": false
},
{
"cid": "2037",
"title": "个人信息保护\n双清单查询指引",
"category": 2,
"displayTime": "2022-09-19",
"updatedAt": 1663316121,
"sticky": false
},
{
"cid": "7758",
"title": "《明日方舟》\n未成年护航指引",
"category": 2,
"displayTime": "2022-05-26",
"updatedAt": 1661249665,
"sticky": false
},
{
"cid": "0664",
"title": "《明日方舟》\n公平运营申明",
"category": 2,
"displayTime": "2019-04-30",
"updatedAt": 1678935570,
"sticky": false
}
],
"popup": {
"popupList": [],
"defaultPopup": "7639"
} }
],
"extra": {
"enable": false,
"name": "额外活动"
} }
} }

View File

@ -1,108 +1,148 @@
{ {
"focusAnnounceId": "816", "code": 0,
"announceList": [ "msg": "",
{ "data": {
"announceId": "805", "list": [
"title": "「风雪过境」\n暨跨年活动开启", {
"isWebUrl": true, "cid": "8397",
"webUrl": "https://ak.hycdn.cn/announce/IOS/announcement/805_1640074952.html", "title": "【公开招募】\n标签刷新通知",
"day": 21, "category": 2,
"month": 12, "displayTime": "2023-07-23",
"group": "ACTIVITY" "updatedAt": 1689935607,
}, "sticky": false
{ },
"announceId": "807", {
"title": "【雪融之诺】\n限时寻访开启", "cid": "5716",
"isWebUrl": true, "title": "「夏日嘉年华」\n活动即将开启",
"webUrl": "https://ak.hycdn.cn/announce/IOS/announcement/807_1640060583.html", "category": 1,
"day": 21, "displayTime": "2023-07-23",
"month": 12, "updatedAt": 1689938907,
"group": "ACTIVITY" "sticky": false
}, },
{ {
"announceId": "809", "cid": "0525",
"title": "冰原信使系列\n新装限时上架", "title": "云间清醒梦\n限定寻访说明",
"isWebUrl": true, "category": 1,
"webUrl": "https://ak.hycdn.cn/announce/IOS/announcement/809_1640060505.html", "displayTime": "2023-07-23",
"day": 21, "updatedAt": 1689938897,
"month": 12, "sticky": false
"group": "ACTIVITY" },
}, {
{ "cid": "4970",
"announceId": "810", "title": "软绵绵工坊\n网页活动进行中",
"title": "寒武纪系列\n限时复刻上架", "category": 4,
"isWebUrl": true, "displayTime": "2023-07-23",
"webUrl": "https://ak.hycdn.cn/announce/IOS/announcement/810_1640060511.html", "updatedAt": 1690122403,
"day": 21, "sticky": false
"month": 12, },
"group": "ACTIVITY" {
}, "cid": "2009",
{ "title": "音律联觉\n录播正式上线",
"announceId": "806", "category": 4,
"title": "跨年欢庆·回首\n限时寻访说明", "displayTime": "2023-07-22",
"isWebUrl": true, "updatedAt": 1689999831,
"webUrl": "https://ak.hycdn.cn/announce/IOS/announcement/806_1639379808.html", "sticky": false
"day": 14, },
"month": 12, {
"group": "ACTIVITY" "cid": "1163",
}, "title": "常驻标准寻访\n限时出率上升",
{ "category": 1,
"announceId": "802", "displayTime": "2023-07-20",
"title": "「制作组通讯」\n#15期", "updatedAt": 1689747296,
"isWebUrl": true, "sticky": false
"webUrl": "https://ak.hycdn.cn/announce/IOS/announcement/802_1638871766.html", },
"day": 8, {
"month": 12, "cid": "7639",
"group": "SYSTEM" "title": "【沙洲引路人】\n限时寻访开启",
}, "category": 1,
{ "displayTime": "2023-07-18",
"announceId": "97", "updatedAt": 1689592428,
"title": "新人寻访特惠\n必得六星干员", "sticky": false
"isWebUrl": true, },
"webUrl": "https://ak.hycdn.cn/announce/IOS/announcement/97_1606379786.html", {
"day": 30, "cid": "4971",
"month": 4, "title": "时代系列\n新装限时上架",
"group": "ACTIVITY" "category": 1,
}, "displayTime": "2023-07-18",
{ "updatedAt": 1689592322,
"announceId": "95", "sticky": false
"title": "通关特定关卡\n赠送专属时装", },
"isWebUrl": true, {
"webUrl": "https://ak.hycdn.cn/announce/IOS/announcement/95_1606379781.html", "cid": "1172",
"day": 30, "title": "珊瑚海岸系列\n限时复刻上架",
"month": 4, "category": 1,
"group": "ACTIVITY" "displayTime": "2023-07-18",
}, "updatedAt": 1689592270,
{ "sticky": false
"announceId": "192", },
"title": "《明日方舟》\n公测开启说明", {
"isWebUrl": true, "cid": "7645",
"webUrl": "https://ak.hycdn.cn/announce/IOS/announcement/192_1606379744.html", "title": "宿于繁星\n联名礼盒开售",
"day": 30, "category": 4,
"month": 4, "displayTime": "2023-07-14",
"group": "SYSTEM" "updatedAt": 1689238086,
}, "sticky": false
{ },
"announceId": "98", {
"title": "《明日方舟》\n公平运营申明", "cid": "2017",
"isWebUrl": true, "title": "眠于树影之中\n系列周边开售",
"webUrl": "https://ak.hycdn.cn/announce/IOS/announcement/98_1638970453.html", "category": 4,
"day": 30, "displayTime": "2023-07-14",
"month": 4, "updatedAt": 1689238029,
"group": "SYSTEM" "sticky": false
}, },
{ {
"announceId": "94", "cid": "0530",
"title": "常驻活动介绍", "title": "UP主应援计划\n限时直播活动",
"isWebUrl": true, "category": 4,
"webUrl": "https://ak.hycdn.cn/announce/IOS/announcement/94_1606379757.html", "displayTime": "2023-07-13",
"day": 30, "updatedAt": 1689235574,
"month": 4, "sticky": false
"group": "ACTIVITY" },
{
"cid": "3453",
"title": "中坚寻访\n干员出率上升",
"category": 1,
"displayTime": "2023-07-13",
"updatedAt": 1689161228,
"sticky": false
},
{
"cid": "4989",
"title": "「绿野幻梦」\n复刻活动开启",
"category": 1,
"displayTime": "2023-07-12",
"updatedAt": 1689761635,
"sticky": false
},
{
"cid": "2037",
"title": "个人信息保护\n双清单查询指引",
"category": 2,
"displayTime": "2022-09-19",
"updatedAt": 1663316121,
"sticky": false
},
{
"cid": "7758",
"title": "《明日方舟》\n未成年护航指引",
"category": 2,
"displayTime": "2022-05-26",
"updatedAt": 1661249665,
"sticky": false
},
{
"cid": "0664",
"title": "《明日方舟》\n公平运营申明",
"category": 2,
"displayTime": "2019-04-30",
"updatedAt": 1678935570,
"sticky": false
}
],
"popup": {
"popupList": [],
"defaultPopup": "7639"
} }
],
"extra": {
"enable": false,
"name": "额外活动"
} }
} }

View File

@ -49,8 +49,8 @@ async def test_fetch_new(
monster_siren_list_0, monster_siren_list_0,
monster_siren_list_1, monster_siren_list_1,
): ):
ak_list_router = respx.get("https://ak-conf.hypergryph.com/config/prod/announce_meta/IOS/announcement.meta.json") ak_list_router = respx.get("https://ak-webview.hypergryph.com/api/game/bulletinList?target=IOS")
detail_router = respx.get("https://ak.hycdn.cn/announce/IOS/announcement/807_1640060583.html") detail_router = respx.get("https://ak-webview.hypergryph.com/api/game/bulletin/5716")
version_router = respx.get("https://ak-conf.hypergryph.com/config/prod/official/IOS/version") version_router = respx.get("https://ak-conf.hypergryph.com/config/prod/official/IOS/version")
preannouncement_router = respx.get( preannouncement_router = respx.get(
"https://ak-conf.hypergryph.com/config/prod/announce_meta/IOS/preannouncement.meta.json" "https://ak-conf.hypergryph.com/config/prod/announce_meta/IOS/preannouncement.meta.json"
@ -101,8 +101,8 @@ async def test_send_with_render(
monster_siren_list_0, monster_siren_list_0,
monster_siren_list_1, monster_siren_list_1,
): ):
ak_list_router = respx.get("https://ak-conf.hypergryph.com/config/prod/announce_meta/IOS/announcement.meta.json") ak_list_router = respx.get("https://ak-webview.hypergryph.com/api/game/bulletinList?target=IOS")
detail_router = respx.get("https://ak.hycdn.cn/announce/IOS/announcement/805_1640074952.html") detail_router = respx.get("https://ak-webview.hypergryph.com/api/game/bulletin/8397")
version_router = respx.get("https://ak-conf.hypergryph.com/config/prod/official/IOS/version") version_router = respx.get("https://ak-conf.hypergryph.com/config/prod/official/IOS/version")
preannouncement_router = respx.get( preannouncement_router = respx.get(
"https://ak-conf.hypergryph.com/config/prod/announce_meta/IOS/preannouncement.meta.json" "https://ak-conf.hypergryph.com/config/prod/announce_meta/IOS/preannouncement.meta.json"