mirror of
https://github.com/suyiiyii/nonebot-bison.git
synced 2026-05-09 18:27:56 +08:00
🚑 修正明日方舟游戏信息的模板与图片渲染
This commit is contained in:
@@ -64,11 +64,12 @@ class Arknights(NewMessage):
|
||||
template_path=template_path,
|
||||
template_name="index.html",
|
||||
templates={
|
||||
"bannerImageUrl": raw_data["bannerImageUrl"],
|
||||
"announce_title": announce_title,
|
||||
"content": raw_data["content"],
|
||||
},
|
||||
pages={
|
||||
"viewport": {"width": 500, "height": 6400},
|
||||
"viewport": {"width": 500, "height": 100},
|
||||
"base_url": f"file://{template_path}",
|
||||
},
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user