From 079414fa4fa96e8d6fb5a9e4e16be7118fa9d7b6 Mon Sep 17 00:00:00 2001 From: xaoyaoo Date: Mon, 5 Aug 2024 17:56:58 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E5=BC=95=E7=94=A8=E5=9B=BE=E7=89=87?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E9=94=99=E8=AF=AF=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pywxdump/db/dbMSG.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pywxdump/db/dbMSG.py b/pywxdump/db/dbMSG.py index c4170c1..04025b7 100644 --- a/pywxdump/db/dbMSG.py +++ b/pywxdump/db/dbMSG.py @@ -161,7 +161,7 @@ class MsgHandler(DatabaseBase): title = appmsg.get("title", "") des = appmsg.get("des", "") url = appmsg.get("url", "") - msg = f"{title}\n{des}\n\n{url}" + msg = f'{title}\n{des}\n\n点击查看详情' src = url elif type_id == (49, 19): # 合并转发的聊天记录 @@ -198,7 +198,7 @@ class MsgHandler(DatabaseBase): else: appmsg1 = display_content.get("appmsg", {}) title1 = appmsg1.get("title", "") - display_content = title1 | display_content + display_content = title1 if title1 else display_content msg = f"{title}\n\n[引用]({display_createtime}){displayname}:{display_content}" src = ""