mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2026-09-29 00:32:06 +08:00
🚑 修复商品图标显示 (#1823)
This commit is contained in:
@@ -35,8 +35,10 @@ async def html_image() -> bytes:
|
|||||||
if goods[1].icon:
|
if goods[1].icon:
|
||||||
path = ICON_PATH / goods[1].icon
|
path = ICON_PATH / goods[1].icon
|
||||||
if path.exists():
|
if path.exists():
|
||||||
icon = "data:image/png;base64,"
|
icon = (
|
||||||
f"{BuildImage.open(ICON_PATH / goods[1].icon).pic2bs4()[9:]}"
|
"data:image/png;base64,"
|
||||||
|
f"{BuildImage.open(ICON_PATH / goods[1].icon).pic2bs4()[9:]}"
|
||||||
|
)
|
||||||
partition_dict[goods[1].partition].append(
|
partition_dict[goods[1].partition].append(
|
||||||
{
|
{
|
||||||
"id": goods[0],
|
"id": goods[0],
|
||||||
|
|||||||
Reference in New Issue
Block a user