From 6e63b361e4ecbfe0043f2212bc9ad5558d61d30d Mon Sep 17 00:00:00 2001 From: ninemine <1371605831@qq.com> Date: Mon, 3 Nov 2025 10:21:26 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E9=99=A4=E7=A7=81=E8=81=8A=E6=97=B6?= =?UTF-8?q?=E5=90=91=E4=B8=BBurl=E5=8F=91=E9=80=81=E6=B6=88=E6=81=AF?= =?UTF-8?q?=E7=9A=84=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- routers/callback.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/routers/callback.py b/routers/callback.py index 0ab065b..b4c2321 100644 --- a/routers/callback.py +++ b/routers/callback.py @@ -346,8 +346,10 @@ async def handle_talk_command(command: str, chat_id: int, user_id: int) -> str: ) if success: - return f"✅ 私聊消息已发送给「{target_username}」!" + # 私聊消息发送成功,不向主URL发送提示消息 + return "" else: + # 发送失败时仍然需要提示用户 return f"❌ 发送私聊消息失败,请稍后重试。" except Exception as e: