mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2025-12-15 14:22:55 +08:00
🐛 修复道具仓库
This commit is contained in:
parent
9fc189b3b7
commit
7ab800be97
@ -386,16 +386,16 @@ class ShopManage:
|
|||||||
uuid2goods = {item.uuid: item for item in result}
|
uuid2goods = {item.uuid: item for item in result}
|
||||||
column_name = ["-", "使用ID", "名称", "数量", "简介"]
|
column_name = ["-", "使用ID", "名称", "数量", "简介"]
|
||||||
for i, p in enumerate(user.props):
|
for i, p in enumerate(user.props):
|
||||||
prop = uuid2goods[p]
|
if prop := uuid2goods.get(p):
|
||||||
data_list.append(
|
data_list.append(
|
||||||
[
|
[
|
||||||
(ICON_PATH / prop.icon, 33, 33) if prop.icon else "",
|
(ICON_PATH / prop.icon, 33, 33) if prop.icon else "",
|
||||||
i,
|
i,
|
||||||
prop.goods_name,
|
prop.goods_name,
|
||||||
user.props[p],
|
user.props[p],
|
||||||
prop.goods_description,
|
prop.goods_description,
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
|
||||||
return await ImageTemplate.table_page(
|
return await ImageTemplate.table_page(
|
||||||
f"{name}的道具仓库", "", column_name, data_list
|
f"{name}的道具仓库", "", column_name, data_list
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user