diff --git a/nonebot_bison/platform/arknights.py b/nonebot_bison/platform/arknights.py index feacf77..b988bd4 100644 --- a/nonebot_bison/platform/arknights.py +++ b/nonebot_bison/platform/arknights.py @@ -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}", }, ) diff --git a/nonebot_bison/post/templates/ark_announce/index.html b/nonebot_bison/post/templates/ark_announce/index.html index 2e9374f..d85ebc2 100644 --- a/nonebot_bison/post/templates/ark_announce/index.html +++ b/nonebot_bison/post/templates/ark_announce/index.html @@ -15,6 +15,11 @@
+ {% if bannerImageUrl %} + + {% endif %}
{{ announce_title }}