适配明日方舟新版公告栏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 pathlib import Path
from httpx import AsyncClient
from nonebot.plugin import require
@ -32,36 +32,45 @@ class Arknights(NewMessage):
return "明日方舟游戏信息"
async def get_sub_list(self, _) -> list[RawPost]:
raw_data = await self.client.get(
"https://ak-conf.hypergryph.com/config/prod/announce_meta/IOS/announcement.meta.json"
)
return json.loads(raw_data.text)["announceList"]
raw_data = await self.client.get("https://ak-webview.hypergryph.com/api/game/bulletinList?target=IOS")
return raw_data.json()["data"]["list"]
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
def get_category(self, _) -> Category:
return Category(1)
async def parse(self, raw_post: RawPost) -> Post:
announce_url = raw_post["webUrl"]
text = ""
raw_html = await self.client.get(announce_url)
soup = bs(raw_html.text, "html.parser")
pics = []
if soup.find("div", class_="standerd-container"):
# 图文
require("nonebot_plugin_htmlrender")
from nonebot_plugin_htmlrender import capture_element
raw_data = await self.client.get(
f"https://ak-webview.hypergryph.com/api/game/bulletin/{self.get_id(post=raw_post)}"
)
raw_data = raw_data.json()["data"]
pic_data = await capture_element(
announce_url,
"div.main",
viewport={"width": 320, "height": 6400},
device_scale_factor=3,
announce_title = raw_data.get("header") if raw_data.get("header") != "" else raw_data.get("title")
# text = "游戏公告更新:" + announce_title.replace('\n','')
text = ""
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()
# viewport = {"width": 320, "height": 6400, "deviceScaleFactor": 3}
@ -72,8 +81,8 @@ class Arknights(NewMessage):
pics.append(pic_data)
else:
text = "图片渲染失败"
elif pic := soup.find("img", class_="banner-image"):
pics.append(pic["src"]) # type: ignore
elif "bannerImageUrl" in raw_data:
pics.append(raw_post["bannerImageUrl"]) # type: ignore
else:
raise CategoryNotRecognize("未找到可渲染部分")
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",
"announceList": [
{
"announceId": "809",
"title": "冰原信使系列\n新装限时上架",
"isWebUrl": true,
"webUrl": "https://ak.hycdn.cn/announce/IOS/announcement/809_1640060505.html",
"day": 21,
"month": 12,
"group": "ACTIVITY"
},
{
"announceId": "810",
"title": "寒武纪系列\n限时复刻上架",
"isWebUrl": true,
"webUrl": "https://ak.hycdn.cn/announce/IOS/announcement/810_1640060511.html",
"day": 21,
"month": 12,
"group": "ACTIVITY"
},
{
"announceId": "806",
"title": "跨年欢庆·回首\n限时寻访说明",
"isWebUrl": true,
"webUrl": "https://ak.hycdn.cn/announce/IOS/announcement/806_1639379808.html",
"day": 14,
"month": 12,
"group": "ACTIVITY"
},
{
"announceId": "802",
"title": "「制作组通讯」\n#15期",
"isWebUrl": true,
"webUrl": "https://ak.hycdn.cn/announce/IOS/announcement/802_1638871766.html",
"day": 8,
"month": 12,
"group": "SYSTEM"
},
{
"announceId": "97",
"title": "新人寻访特惠\n必得六星干员",
"isWebUrl": true,
"webUrl": "https://ak.hycdn.cn/announce/IOS/announcement/97_1606379786.html",
"day": 30,
"month": 4,
"group": "ACTIVITY"
},
{
"announceId": "95",
"title": "通关特定关卡\n赠送专属时装",
"isWebUrl": true,
"webUrl": "https://ak.hycdn.cn/announce/IOS/announcement/95_1606379781.html",
"day": 30,
"month": 4,
"group": "ACTIVITY"
},
{
"announceId": "192",
"title": "《明日方舟》\n公测开启说明",
"isWebUrl": true,
"webUrl": "https://ak.hycdn.cn/announce/IOS/announcement/192_1606379744.html",
"day": 30,
"month": 4,
"group": "SYSTEM"
},
{
"announceId": "98",
"title": "《明日方舟》\n公平运营申明",
"isWebUrl": true,
"webUrl": "https://ak.hycdn.cn/announce/IOS/announcement/98_1638970453.html",
"day": 30,
"month": 4,
"group": "SYSTEM"
},
{
"announceId": "94",
"title": "常驻活动介绍",
"isWebUrl": true,
"webUrl": "https://ak.hycdn.cn/announce/IOS/announcement/94_1606379757.html",
"day": 30,
"month": 4,
"group": "ACTIVITY"
"code": 0,
"msg": "",
"data": {
"list": [
{
"cid": "0525",
"title": "云间清醒梦\n限定寻访说明",
"category": 1,
"displayTime": "2023-07-23",
"updatedAt": 1689938897,
"sticky": false
},
{
"cid": "4970",
"title": "软绵绵工坊\n网页活动进行中",
"category": 4,
"displayTime": "2023-07-23",
"updatedAt": 1690122403,
"sticky": false
},
{
"cid": "2009",
"title": "音律联觉\n录播正式上线",
"category": 4,
"displayTime": "2023-07-22",
"updatedAt": 1689999831,
"sticky": false
},
{
"cid": "1163",
"title": "常驻标准寻访\n限时出率上升",
"category": 1,
"displayTime": "2023-07-20",
"updatedAt": 1689747296,
"sticky": false
},
{
"cid": "7639",
"title": "【沙洲引路人】\n限时寻访开启",
"category": 1,
"displayTime": "2023-07-18",
"updatedAt": 1689592428,
"sticky": false
},
{
"cid": "4971",
"title": "时代系列\n新装限时上架",
"category": 1,
"displayTime": "2023-07-18",
"updatedAt": 1689592322,
"sticky": false
},
{
"cid": "1172",
"title": "珊瑚海岸系列\n限时复刻上架",
"category": 1,
"displayTime": "2023-07-18",
"updatedAt": 1689592270,
"sticky": false
},
{
"cid": "7645",
"title": "宿于繁星\n联名礼盒开售",
"category": 4,
"displayTime": "2023-07-14",
"updatedAt": 1689238086,
"sticky": false
},
{
"cid": "2017",
"title": "眠于树影之中\n系列周边开售",
"category": 4,
"displayTime": "2023-07-14",
"updatedAt": 1689238029,
"sticky": false
},
{
"cid": "0530",
"title": "UP主应援计划\n限时直播活动",
"category": 4,
"displayTime": "2023-07-13",
"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",
"announceList": [
{
"announceId": "807",
"title": "【雪融之诺】\n限时寻访开启",
"isWebUrl": true,
"webUrl": "https://ak.hycdn.cn/announce/IOS/announcement/807_1640060583.html",
"day": 21,
"month": 12,
"group": "ACTIVITY"
},
{
"announceId": "809",
"title": "冰原信使系列\n新装限时上架",
"isWebUrl": true,
"webUrl": "https://ak.hycdn.cn/announce/IOS/announcement/809_1640060505.html",
"day": 21,
"month": 12,
"group": "ACTIVITY"
},
{
"announceId": "810",
"title": "寒武纪系列\n限时复刻上架",
"isWebUrl": true,
"webUrl": "https://ak.hycdn.cn/announce/IOS/announcement/810_1640060511.html",
"day": 21,
"month": 12,
"group": "ACTIVITY"
},
{
"announceId": "806",
"title": "跨年欢庆·回首\n限时寻访说明",
"isWebUrl": true,
"webUrl": "https://ak.hycdn.cn/announce/IOS/announcement/806_1639379808.html",
"day": 14,
"month": 12,
"group": "ACTIVITY"
},
{
"announceId": "802",
"title": "「制作组通讯」\n#15期",
"isWebUrl": true,
"webUrl": "https://ak.hycdn.cn/announce/IOS/announcement/802_1638871766.html",
"day": 8,
"month": 12,
"group": "SYSTEM"
},
{
"announceId": "97",
"title": "新人寻访特惠\n必得六星干员",
"isWebUrl": true,
"webUrl": "https://ak.hycdn.cn/announce/IOS/announcement/97_1606379786.html",
"day": 30,
"month": 4,
"group": "ACTIVITY"
},
{
"announceId": "95",
"title": "通关特定关卡\n赠送专属时装",
"isWebUrl": true,
"webUrl": "https://ak.hycdn.cn/announce/IOS/announcement/95_1606379781.html",
"day": 30,
"month": 4,
"group": "ACTIVITY"
},
{
"announceId": "192",
"title": "《明日方舟》\n公测开启说明",
"isWebUrl": true,
"webUrl": "https://ak.hycdn.cn/announce/IOS/announcement/192_1606379744.html",
"day": 30,
"month": 4,
"group": "SYSTEM"
},
{
"announceId": "98",
"title": "《明日方舟》\n公平运营申明",
"isWebUrl": true,
"webUrl": "https://ak.hycdn.cn/announce/IOS/announcement/98_1638970453.html",
"day": 30,
"month": 4,
"group": "SYSTEM"
},
{
"announceId": "94",
"title": "常驻活动介绍",
"isWebUrl": true,
"webUrl": "https://ak.hycdn.cn/announce/IOS/announcement/94_1606379757.html",
"day": 30,
"month": 4,
"group": "ACTIVITY"
"code": 0,
"msg": "",
"data": {
"list": [
{
"cid": "5716",
"title": "「夏日嘉年华」\n活动即将开启",
"category": 1,
"displayTime": "2023-07-23",
"updatedAt": 1689938907,
"sticky": false
},
{
"cid": "0525",
"title": "云间清醒梦\n限定寻访说明",
"category": 1,
"displayTime": "2023-07-23",
"updatedAt": 1689938897,
"sticky": false
},
{
"cid": "4970",
"title": "软绵绵工坊\n网页活动进行中",
"category": 4,
"displayTime": "2023-07-23",
"updatedAt": 1690122403,
"sticky": false
},
{
"cid": "2009",
"title": "音律联觉\n录播正式上线",
"category": 4,
"displayTime": "2023-07-22",
"updatedAt": 1689999831,
"sticky": false
},
{
"cid": "1163",
"title": "常驻标准寻访\n限时出率上升",
"category": 1,
"displayTime": "2023-07-20",
"updatedAt": 1689747296,
"sticky": false
},
{
"cid": "7639",
"title": "【沙洲引路人】\n限时寻访开启",
"category": 1,
"displayTime": "2023-07-18",
"updatedAt": 1689592428,
"sticky": false
},
{
"cid": "4971",
"title": "时代系列\n新装限时上架",
"category": 1,
"displayTime": "2023-07-18",
"updatedAt": 1689592322,
"sticky": false
},
{
"cid": "1172",
"title": "珊瑚海岸系列\n限时复刻上架",
"category": 1,
"displayTime": "2023-07-18",
"updatedAt": 1689592270,
"sticky": false
},
{
"cid": "7645",
"title": "宿于繁星\n联名礼盒开售",
"category": 4,
"displayTime": "2023-07-14",
"updatedAt": 1689238086,
"sticky": false
},
{
"cid": "2017",
"title": "眠于树影之中\n系列周边开售",
"category": 4,
"displayTime": "2023-07-14",
"updatedAt": 1689238029,
"sticky": false
},
{
"cid": "0530",
"title": "UP主应援计划\n限时直播活动",
"category": 4,
"displayTime": "2023-07-13",
"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,108 +1,148 @@
{
"focusAnnounceId": "816",
"announceList": [
{
"announceId": "805",
"title": "「风雪过境」\n暨跨年活动开启",
"isWebUrl": true,
"webUrl": "https://ak.hycdn.cn/announce/IOS/announcement/805_1640074952.html",
"day": 21,
"month": 12,
"group": "ACTIVITY"
},
{
"announceId": "807",
"title": "【雪融之诺】\n限时寻访开启",
"isWebUrl": true,
"webUrl": "https://ak.hycdn.cn/announce/IOS/announcement/807_1640060583.html",
"day": 21,
"month": 12,
"group": "ACTIVITY"
},
{
"announceId": "809",
"title": "冰原信使系列\n新装限时上架",
"isWebUrl": true,
"webUrl": "https://ak.hycdn.cn/announce/IOS/announcement/809_1640060505.html",
"day": 21,
"month": 12,
"group": "ACTIVITY"
},
{
"announceId": "810",
"title": "寒武纪系列\n限时复刻上架",
"isWebUrl": true,
"webUrl": "https://ak.hycdn.cn/announce/IOS/announcement/810_1640060511.html",
"day": 21,
"month": 12,
"group": "ACTIVITY"
},
{
"announceId": "806",
"title": "跨年欢庆·回首\n限时寻访说明",
"isWebUrl": true,
"webUrl": "https://ak.hycdn.cn/announce/IOS/announcement/806_1639379808.html",
"day": 14,
"month": 12,
"group": "ACTIVITY"
},
{
"announceId": "802",
"title": "「制作组通讯」\n#15期",
"isWebUrl": true,
"webUrl": "https://ak.hycdn.cn/announce/IOS/announcement/802_1638871766.html",
"day": 8,
"month": 12,
"group": "SYSTEM"
},
{
"announceId": "97",
"title": "新人寻访特惠\n必得六星干员",
"isWebUrl": true,
"webUrl": "https://ak.hycdn.cn/announce/IOS/announcement/97_1606379786.html",
"day": 30,
"month": 4,
"group": "ACTIVITY"
},
{
"announceId": "95",
"title": "通关特定关卡\n赠送专属时装",
"isWebUrl": true,
"webUrl": "https://ak.hycdn.cn/announce/IOS/announcement/95_1606379781.html",
"day": 30,
"month": 4,
"group": "ACTIVITY"
},
{
"announceId": "192",
"title": "《明日方舟》\n公测开启说明",
"isWebUrl": true,
"webUrl": "https://ak.hycdn.cn/announce/IOS/announcement/192_1606379744.html",
"day": 30,
"month": 4,
"group": "SYSTEM"
},
{
"announceId": "98",
"title": "《明日方舟》\n公平运营申明",
"isWebUrl": true,
"webUrl": "https://ak.hycdn.cn/announce/IOS/announcement/98_1638970453.html",
"day": 30,
"month": 4,
"group": "SYSTEM"
},
{
"announceId": "94",
"title": "常驻活动介绍",
"isWebUrl": true,
"webUrl": "https://ak.hycdn.cn/announce/IOS/announcement/94_1606379757.html",
"day": 30,
"month": 4,
"group": "ACTIVITY"
"code": 0,
"msg": "",
"data": {
"list": [
{
"cid": "8397",
"title": "【公开招募】\n标签刷新通知",
"category": 2,
"displayTime": "2023-07-23",
"updatedAt": 1689935607,
"sticky": false
},
{
"cid": "5716",
"title": "「夏日嘉年华」\n活动即将开启",
"category": 1,
"displayTime": "2023-07-23",
"updatedAt": 1689938907,
"sticky": false
},
{
"cid": "0525",
"title": "云间清醒梦\n限定寻访说明",
"category": 1,
"displayTime": "2023-07-23",
"updatedAt": 1689938897,
"sticky": false
},
{
"cid": "4970",
"title": "软绵绵工坊\n网页活动进行中",
"category": 4,
"displayTime": "2023-07-23",
"updatedAt": 1690122403,
"sticky": false
},
{
"cid": "2009",
"title": "音律联觉\n录播正式上线",
"category": 4,
"displayTime": "2023-07-22",
"updatedAt": 1689999831,
"sticky": false
},
{
"cid": "1163",
"title": "常驻标准寻访\n限时出率上升",
"category": 1,
"displayTime": "2023-07-20",
"updatedAt": 1689747296,
"sticky": false
},
{
"cid": "7639",
"title": "【沙洲引路人】\n限时寻访开启",
"category": 1,
"displayTime": "2023-07-18",
"updatedAt": 1689592428,
"sticky": false
},
{
"cid": "4971",
"title": "时代系列\n新装限时上架",
"category": 1,
"displayTime": "2023-07-18",
"updatedAt": 1689592322,
"sticky": false
},
{
"cid": "1172",
"title": "珊瑚海岸系列\n限时复刻上架",
"category": 1,
"displayTime": "2023-07-18",
"updatedAt": 1689592270,
"sticky": false
},
{
"cid": "7645",
"title": "宿于繁星\n联名礼盒开售",
"category": 4,
"displayTime": "2023-07-14",
"updatedAt": 1689238086,
"sticky": false
},
{
"cid": "2017",
"title": "眠于树影之中\n系列周边开售",
"category": 4,
"displayTime": "2023-07-14",
"updatedAt": 1689238029,
"sticky": false
},
{
"cid": "0530",
"title": "UP主应援计划\n限时直播活动",
"category": 4,
"displayTime": "2023-07-13",
"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

@ -49,8 +49,8 @@ async def test_fetch_new(
monster_siren_list_0,
monster_siren_list_1,
):
ak_list_router = respx.get("https://ak-conf.hypergryph.com/config/prod/announce_meta/IOS/announcement.meta.json")
detail_router = respx.get("https://ak.hycdn.cn/announce/IOS/announcement/807_1640060583.html")
ak_list_router = respx.get("https://ak-webview.hypergryph.com/api/game/bulletinList?target=IOS")
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")
preannouncement_router = respx.get(
"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_1,
):
ak_list_router = respx.get("https://ak-conf.hypergryph.com/config/prod/announce_meta/IOS/announcement.meta.json")
detail_router = respx.get("https://ak.hycdn.cn/announce/IOS/announcement/805_1640074952.html")
ak_list_router = respx.get("https://ak-webview.hypergryph.com/api/game/bulletinList?target=IOS")
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")
preannouncement_router = respx.get(
"https://ak-conf.hypergryph.com/config/prod/announce_meta/IOS/preannouncement.meta.json"