From 3cc834d42451629e7ace71d3dcd3ca45ae5b2d5e Mon Sep 17 00:00:00 2001 From: HibiKier <775757368@qq.com> Date: Sat, 1 Apr 2023 01:58:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BC=98=E5=8C=96=E5=BC=80?= =?UTF-8?q?=E7=AE=B1=E6=98=BE=E7=A4=BA=E5=9B=BE=E7=89=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/open_cases/__init__.py | 6 ------ plugins/open_cases/open_cases_c.py | 4 +++- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/plugins/open_cases/__init__.py b/plugins/open_cases/__init__.py index f1226f97..029f2a93 100755 --- a/plugins/open_cases/__init__.py +++ b/plugins/open_cases/__init__.py @@ -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): diff --git a/plugins/open_cases/open_cases_c.py b/plugins/open_cases/open_cases_c.py index 4ccfbb26..fe0f477d 100755 --- a/plugins/open_cases/open_cases_c.py +++ b/plugins/open_cases/open_cases_c.py @@ -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