From 017b010206e87aec8d052d3d71a8d800173d585c Mon Sep 17 00:00:00 2001 From: shuiping233 <1944680304@qq.com> Date: Tue, 11 Mar 2025 21:17:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BA=86=E4=BD=BF=E7=94=A8Im?= =?UTF-8?q?age.fromBytes=E7=AD=89=E5=8C=85=E8=A3=85=E7=9A=84=E5=9B=BE?= =?UTF-8?q?=E7=89=87=E6=B6=88=E6=81=AF=E9=93=BE=E6=97=A0=E6=B3=95=E9=80=9A?= =?UTF-8?q?=E8=BF=87qq=E5=AE=98=E6=96=B9=E6=9C=BA=E5=99=A8=E4=BA=BA?= =?UTF-8?q?=E9=80=82=E9=85=8D=E5=99=A8=E5=8F=91=E9=80=81=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../platform/sources/qqofficial/qqofficial_message_event.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/astrbot/core/platform/sources/qqofficial/qqofficial_message_event.py b/astrbot/core/platform/sources/qqofficial/qqofficial_message_event.py index ec7eaa8f..987c9816 100644 --- a/astrbot/core/platform/sources/qqofficial/qqofficial_message_event.py +++ b/astrbot/core/platform/sources/qqofficial/qqofficial_message_event.py @@ -130,7 +130,7 @@ class QQOfficialMessageEvent(AstrMessageEvent): "base64://", "" ) else: - image_base64 = file_to_base64(i.file).replace("base64://", "") + image_base64 = i.file.replace("base64://", "") image_file_path = i.file else: logger.debug(f"qq_official 忽略 {i.type}")