修改优化开箱显示图片

This commit is contained in:
HibiKier 2023-04-01 01:58:36 +08:00
parent 0c7c7f3987
commit 3cc834d424
2 changed files with 3 additions and 7 deletions

View File

@ -135,14 +135,8 @@ update_case = on_command(
show_case = on_command("查看武器箱", priority=5, block=True)
my_knifes = on_command("我的金色", priority=1, permission=GROUP, block=True)
show_skin = on_command("查看皮肤", priority=5, block=True)
test = on_command("test", priority=1, permission=GROUP, block=True)
@test.handle()
async def _(event: GroupMessageEvent):
a = await get_skin_case("872472")
print(a)
@reload_count.handle()
async def _(event: GroupMessageEvent):

View File

@ -251,7 +251,9 @@ async def open_multiple_case(
h = img_h * int(num / 5)
else:
h = img_h * int(num / 5) + img_h
markImg = BuildImage(w, h, img_w - 10, img_h - 10, 10)
markImg = BuildImage(
w - 10, h - 10, img_w - 10, img_h - 10, 10, color=(255, 255, 255)
)
for img in img_list:
markImg.paste(img, alpha=True)
over_count = max_count - user.today_open_total