天气查询结果
-{{ timestamp }}
-From 898c9e7a381207761472147fb3be5cb1d8bf5156 Mon Sep 17 00:00:00 2001 From: baby20162016 <2185823427@qq.com> Date: Sun, 1 Mar 2026 11:25:36 +0800 Subject: [PATCH] =?UTF-8?q?feat(plugins):=20=E6=9B=B4=E6=96=B0=E5=A4=A9?= =?UTF-8?q?=E6=B0=94=E6=8F=92=E4=BB=B6html?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/weather.py | 2 +- templates/weather.html | 543 +++++++++++++++++++++++------------------ 2 files changed, 309 insertions(+), 236 deletions(-) diff --git a/plugins/weather.py b/plugins/weather.py index 445b1f6..ded39b0 100644 --- a/plugins/weather.py +++ b/plugins/weather.py @@ -186,7 +186,7 @@ async def handle_weather(bot, event: MessageEvent, args: List[str]): try: # 渲染HTML模板为图片 base64_image = await image_manager.render_template_to_base64( - "weather.html", weather_info, output_name="weather.png", width=1080 + "weather.html", weather_info, output_name="weather.png", width=400, height=500 ) if base64_image: diff --git a/templates/weather.html b/templates/weather.html index 6576f55..8ef9578 100644 --- a/templates/weather.html +++ b/templates/weather.html @@ -4,23 +4,16 @@
{{ timestamp }}
-