From 3e299aa09484965e3f25aea59a34c47d36d0da2d Mon Sep 17 00:00:00 2001 From: HRS <3474006766@qq.com> Date: Mon, 10 Jul 2023 11:04:02 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20=E4=BF=AE=E5=A4=8D=E5=85=B6?= =?UTF-8?q?=E4=BB=96=E5=AE=A2=E6=88=B7=E7=AB=AF=E6=89=AB=E7=A0=81=E7=99=BB?= =?UTF-8?q?=E5=BD=95=E9=97=AE=E9=A2=98=20(#24)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gsuid_core/utils/cookie_manager/qrlogin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gsuid_core/utils/cookie_manager/qrlogin.py b/gsuid_core/utils/cookie_manager/qrlogin.py index 2ddceae..0a7564f 100644 --- a/gsuid_core/utils/cookie_manager/qrlogin.py +++ b/gsuid_core/utils/cookie_manager/qrlogin.py @@ -54,7 +54,7 @@ async def get_qrcode_base64(url: str, path: Path, bot_id: str) -> bytes: else: img_byte = io.BytesIO() img.save(img_byte, format='PNG') # type: ignore - img = img_byte.read() + img = img_byte.getvalue() return img