mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2025-12-15 14:22:55 +08:00
🚑 修复商品图标显示 (#1823)
This commit is contained in:
parent
2c798a6cd8
commit
e124c1dbdb
@ -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],
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user