修复不能显示最新数据的问题

This commit is contained in:
shuaikangzhou 2023-12-09 23:32:12 +08:00
parent 996582a81e
commit 0b04b8b45e
2 changed files with 2 additions and 1 deletions

View File

@ -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:

View File

@ -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)