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)