From 1a61247f0581840bb3301f3598838289fdcdd35a Mon Sep 17 00:00:00 2001 From: HibiKier <775757368@qq.com> Date: Tue, 7 Jan 2025 14:47:46 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=91=20=20=E4=BF=AE=E5=A4=8D=E5=95=86?= =?UTF-8?q?=E5=93=81=E5=9B=BE=E6=A0=87=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- zhenxun/builtin_plugins/shop/html_image.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/zhenxun/builtin_plugins/shop/html_image.py b/zhenxun/builtin_plugins/shop/html_image.py index 7651608e8..6724e915e 100644 --- a/zhenxun/builtin_plugins/shop/html_image.py +++ b/zhenxun/builtin_plugins/shop/html_image.py @@ -35,8 +35,10 @@ async def html_image() -> bytes: if goods[1].icon: path = ICON_PATH / goods[1].icon if path.exists(): - icon = "data:image/png;base64," - f"{BuildImage.open(ICON_PATH / goods[1].icon).pic2bs4()[9:]}" + icon = ( + "data:image/png;base64," + f"{BuildImage.open(ICON_PATH / goods[1].icon).pic2bs4()[9:]}" + ) partition_dict[goods[1].partition].append( { "id": goods[0],