🐛 修复商店商品为空时报错 (#1634)

This commit is contained in:
HibiKier
2024-09-16 21:17:09 +08:00
committed by GitHub
parent 60f4406ec1
commit fcfaf56021
2 changed files with 12 additions and 14 deletions
+1 -1
View File
@@ -633,7 +633,7 @@ class ShopManage:
# await A.apaste(bk, (0, current_h), True)
# current_h += 90
current_h = 0
h = sum(img.height + 10 for img in image_list)
h = sum(img.height + 10 for img in image_list) or 400
A = BuildImage(1100, h, color="#f9f6f2")
for img in image_list:
await A.paste(img, (0, current_h))