From 0b04b8b45e5788faefb58d575dfdb49c2f7efab2 Mon Sep 17 00:00:00 2001 From: shuaikangzhou <863909694@qq.com> Date: Sat, 9 Dec 2023 23:32:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B8=8D=E8=83=BD=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E6=9C=80=E6=96=B0=E6=95=B0=E6=8D=AE=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/ui_pc/chat/chat_info.py | 2 +- app/util/emoji.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/ui_pc/chat/chat_info.py b/app/ui_pc/chat/chat_info.py index 5642bdd..eb2c24e 100644 --- a/app/ui_pc/chat/chat_info.py +++ b/app/ui_pc/chat/chat_info.py @@ -146,7 +146,7 @@ class ShowChatThread(QThread): # heightSingal = pyqtSignal(int) def __init__(self, contact): super().__init__() - self.last_message_id = msg_db.get_messages_length() or 9999999 + self.last_message_id = 99999999 self.wxid = contact.wxid def run(self) -> None: diff --git a/app/util/emoji.py b/app/util/emoji.py index e3d7a57..141cf20 100644 --- a/app/util/emoji.py +++ b/app/util/emoji.py @@ -91,6 +91,7 @@ def get_emoji(xml_string, thumb=True, output_path=root_path) -> str: prefix = 'th_' if thumb else '' file_path = os.path.join(output_path, prefix + md5 + f) if os.path.exists(file_path): + print('表情包已存在') return file_path url = emoji_info['thumburl'] if thumb else emoji_info['cdnurl'] print("下载表情包ing:", url)