From eefd406feed9ce8eda3dd58ea7185d65de556f71 Mon Sep 17 00:00:00 2001 From: SiYuan <863909694@qq.com> Date: Wed, 14 Feb 2024 19:07:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=83=A8=E5=88=86ui?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/decrypt/get_wx_info.py | 5 ++++- app/log/exception_handling.py | 2 +- app/ui/mainview.py | 9 ++++++--- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/app/decrypt/get_wx_info.py b/app/decrypt/get_wx_info.py index 8eec09f..6d1bc2e 100644 --- a/app/decrypt/get_wx_info.py +++ b/app/decrypt/get_wx_info.py @@ -24,6 +24,8 @@ from win32api import GetFileVersionInfo, HIWORD, LOWORD """ class Wechat来源:https://github.com/SnowMeteors/GetWeChatKey """ + + class Wechat: def __init__(self, pm): module = pymem.process.module_from_name(pm.process_handle, "WeChatWin.dll") @@ -150,6 +152,7 @@ class Wechat: return version + # 获取exe文件的位数 def get_exe_bit(file_path): """ @@ -403,7 +406,7 @@ def read_info(version_list, is_logging=False): tmp_rd['filePath'] = get_info_filePath(tmp_rd['wxid']) if tmp_rd['wxid'] != "None" else "None" tmp_rd['key'] = "None" tmp_rd['key'] = get_key(tmp_rd['filePath'], addrLen) - if tmp_rd['key']=='None': + if tmp_rd['key'] == 'None': wechat = Pymem("WeChat.exe") key = Wechat(wechat).GetInfo() if key: diff --git a/app/log/exception_handling.py b/app/log/exception_handling.py index ef2a14d..cef46c5 100644 --- a/app/log/exception_handling.py +++ b/app/log/exception_handling.py @@ -21,7 +21,7 @@ class ExceptionHanding: self.exc_value): return '数据库错误,请删除app文件夹后重启电脑再运行软件' else: - return '未知错误类型,可参考 https://blog.lc044.love/post/7 解决该问题' + return '未知错误类型,可参考 https://blog.lc044.love/post/7 解决该问题\n温馨提示:重启电脑可解决80%的问题' def __str__(self): errmsg = f'{self.error_message}\n{self.parser_exc()}' diff --git a/app/ui/mainview.py b/app/ui/mainview.py index 43ceda5..f700aab 100644 --- a/app/ui/mainview.py +++ b/app/ui/mainview.py @@ -11,7 +11,7 @@ import json import os.path import traceback -from PyQt5.QtCore import pyqtSignal, QThread, QSize, QUrl +from PyQt5.QtCore import pyqtSignal, QThread, QSize, QUrl, Qt from PyQt5.QtGui import QPixmap, QIcon, QDesktopServices from PyQt5.QtWidgets import QMainWindow, QLabel, QMessageBox @@ -282,7 +282,11 @@ class MainWinController(QMainWindow, mainwindow.Ui_MainWindow, QCursorGif): self.setStyleSheet(Stylesheet) self.listWidget.clear() self.resize(QSize(800, 600)) - + self.info = QLabel(self) + self.info.setText('Tips ') + self.info.setAlignment(Qt.AlignRight) + self.statusbar.addPermanentWidget(self.info) + self.statusbar.showMessage('遇到问题可添加QQ群咨询', 5000) self.load_flag = False self.load_data() self.load_num = 0 @@ -316,7 +320,6 @@ class MainWinController(QMainWindow, mainwindow.Ui_MainWindow, QCursorGif): pass def init_ui(self): - # 设置忙碌光标图片数组 self.initCursor([':/icons/icons/Cursors/%d.png' % i for i in range(8)])