From 0eca2ce9a2ff21b35c92d2a7e55e3a48a6f343c8 Mon Sep 17 00:00:00 2001 From: shuaikangzhou <863909694@qq.com> Date: Sun, 21 May 2023 00:19:25 +0800 Subject: [PATCH] readme --- main.py | 4 ++-- readme.md | 41 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index a68dec2..bc7d7bb 100644 --- a/main.py +++ b/main.py @@ -50,6 +50,6 @@ class ViewController: if __name__ == '__main__': app = QApplication(sys.argv) view = ViewController() - # view.loadDecryptView() # 进入登录界面,如果view login不是成员变量,则离开作用域后失效。 - view.loadMainWinView('102') + view.loadDecryptView() # 进入登录界面,如果view login不是成员变量,则离开作用域后失效。 + # view.loadMainWinView('102') sys.exit(app.exec_()) diff --git a/readme.md b/readme.md index b5f1412..ea6c487 100644 --- a/readme.md +++ b/readme.md @@ -26,3 +26,44 @@ ## 使用 +1. 根据[教程](https://blog.csdn.net/m0_59452630/article/details/124222235?spm=1001.2014.3001.5501)获得两个文件 + - auth_info_key_prefs.xml——解析数据库密码 + - EnMicroMsg.db——聊天数据库 +2. 安装依赖库 + +命令行运行以下代码 + +```bash +pip install -r requirements.txt +``` + +运行main.py + +```bash +python main.py +``` + +3. 出现解密界面 + +![image-20230521001305274](doc/images/image-20230521001305274.png) + +按照提示选择上面获得的两个文件,等待解密完成,重新运行程序 + +4. 进入主界面 + +这时候不显示头像,因为头像文件没有导入进来 + +![image-20230521001547481](doc/images/image-20230521001547481.png) + +根据[教程](https://blog.csdn.net/m0_59452630/article/details/124222235?spm=1001.2014.3001.5501) +将头像文件夹avatar复制到工程目录./app/data/目录下 + +![image-20230521001726799](doc/images/image-20230521001726799.png) + +如果想要显示聊天图像就把[教程](https://blog.csdn.net/m0_59452630/article/details/124222235?spm=1001.2014.3001.5501) +里的image2文件夹复制到./app/data文件夹里,效果跟上图一样 + +复制进来之后再运行程序就有图像了 + +![image-20230520235113261](doc/images/image-20230520235113261.png) +