From f5ca91cc31e19b01f1a06bb85b8ad300727e53ca Mon Sep 17 00:00:00 2001 From: shuaikangzhou <863909694@qq.com> Date: Mon, 15 Jan 2024 20:09:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=89=B9=E9=87=8F=E5=AF=BC?= =?UTF-8?q?=E5=87=BA=E9=80=89=E6=8B=A9=E5=90=8E=E6=97=A0=E6=95=88=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/components/export_contact_item.py | 2 ++ app/ui/mainview.py | 3 +++ app/ui/tool/pc_decrypt/pc_decrypt.py | 2 +- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/app/components/export_contact_item.py b/app/components/export_contact_item.py index 4816c90..7c7c04f 100644 --- a/app/components/export_contact_item.py +++ b/app/components/export_contact_item.py @@ -56,6 +56,7 @@ class ContactQListWidgetItem(QListWidgetItem): # 设置布局用来对nameLabel和avatorLabel进行布局 hbox = QHBoxLayout() self.checkBox = QCheckBox() + self.checkBox.clicked.connect(self.select) hbox.addWidget(self.checkBox) hbox.addWidget(self.avatorLabel) hbox.addWidget(self.nameLabel) @@ -76,6 +77,7 @@ class ContactQListWidgetItem(QListWidgetItem): # print('选择',self.is_select) self.checkBox.setChecked(self.is_select) # self.widget.setStyleSheet(Stylesheet_clicked) + def force_select(self): self.is_select = True self.checkBox.setChecked(self.is_select) diff --git a/app/ui/mainview.py b/app/ui/mainview.py index bb7a96d..cb8661d 100644 --- a/app/ui/mainview.py +++ b/app/ui/mainview.py @@ -9,6 +9,7 @@ """ import json import os.path +import traceback from PyQt5.QtCore import pyqtSignal, QUrl, Qt, QThread, QSize from PyQt5.QtGui import QPixmap, QFont, QDesktopServices, QIcon @@ -24,6 +25,7 @@ from .menu.export import ExportDialog from .tool.tool_window import ToolWindow from ..DataBase.output_pc import Output from ..components.QCursorGif import QCursorGif +from ..log import logger from ..person import Me # 美化样式表 @@ -207,6 +209,7 @@ class MainWinController(QMainWindow, mainwindow.Ui_MainWindow, QCursorGif): img_bytes = misc_db.get_avatar_buffer(wxid) except: close_db() + logger.error(f'数据库错误:\n{traceback.format_exc()}') QMessageBox.critical(self, "数据库错误", "请重启微信后重试") import shutil shutil.rmtree('./app/Database/Msg') diff --git a/app/ui/tool/pc_decrypt/pc_decrypt.py b/app/ui/tool/pc_decrypt/pc_decrypt.py index 8373aae..814a563 100644 --- a/app/ui/tool/pc_decrypt/pc_decrypt.py +++ b/app/ui/tool/pc_decrypt/pc_decrypt.py @@ -61,7 +61,7 @@ class DecryptControl(QWidget, decryptUi.Ui_Dialog, QCursorGif): if result[0] == -1: QMessageBox.critical(self, "错误", "请登录微信") elif result[0] == -2: - QMessageBox.critical(self, "错误", "微信版本不匹配\n请更新微信版本为:3.9.8.25") + QMessageBox.critical(self, "错误", "微信版本不匹配\n请更新微信版本为:3.9.9.27(去微信官网下载)") elif result[0] == -3: QMessageBox.critical(self, "错误", "WeChat WeChatWin.dll Not Found") elif result[0] == -10086: