From a43564c102d1d9539339f6a2fed32685e77b9c53 Mon Sep 17 00:00:00 2001 From: HibiKier <775757368@qq.com> Date: Tue, 1 Apr 2025 13:03:33 +0800 Subject: [PATCH] =?UTF-8?q?:zap:=20=E7=A7=BB=E9=99=A4build=5Fmessage?= =?UTF-8?q?=E7=9A=84https=E9=BB=98=E8=AE=A4=E8=BD=AC=E5=9B=BE=E7=89=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vscode/settings.json | 5 +++-- zhenxun/utils/message.py | 2 -- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index bc89a074..ca3f6942 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -16,6 +16,7 @@ "jsdelivr", "kaiheila", "lolicon", + "Mahiro", "nonebot", "onebot", "pixiv", @@ -24,9 +25,9 @@ "tobytes", "ujson", "unban", + "Uninfo", "userinfo", - "zhenxun", - "jsdelivr" + "zhenxun" ], "python.analysis.autoImportCompletions": true, "python.testing.pytestArgs": ["tests"], diff --git a/zhenxun/utils/message.py b/zhenxun/utils/message.py index bc8028b6..927b050c 100644 --- a/zhenxun/utils/message.py +++ b/zhenxun/utils/message.py @@ -64,8 +64,6 @@ class MessageUtils: if isinstance(msg, str): if msg.startswith("base64://"): message_list.append(Image(raw=BytesIO(base64.b64decode(msg[9:])))) - elif msg.startswith(("http://", "https://")): - message_list.append(Image(url=msg)) else: message_list.append(Text(msg)) elif isinstance(msg, int | float):