{"id":16779685,"url":"https://github.com/lc044/db_chat","last_synced_at":"2025-08-22T16:09:55.315Z","repository":{"id":128060109,"uuid":"578549604","full_name":"LC044/DB_Chat","owner":"LC044","description":"使用pyqt开发模仿微信界面的聊天程序","archived":false,"fork":false,"pushed_at":"2024-06-12T08:47:34.000Z","size":1306,"stargazers_count":14,"open_issues_count":0,"forks_count":3,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-04T02:01:44.038Z","etag":null,"topics":["pyqt5","python","wechat"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LC044.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"license","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-12-15T10:18:06.000Z","updated_at":"2024-12-22T16:12:54.000Z","dependencies_parsed_at":"2024-10-28T11:47:57.347Z","dependency_job_id":"fe381af1-1d17-49fa-b460-2d9b5469ff64","html_url":"https://github.com/LC044/DB_Chat","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/LC044/DB_Chat","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LC044%2FDB_Chat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LC044%2FDB_Chat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LC044%2FDB_Chat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LC044%2FDB_Chat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LC044","download_url":"https://codeload.github.com/LC044/DB_Chat/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LC044%2FDB_Chat/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271665228,"owners_count":24799304,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-22T02:00:08.480Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["pyqt5","python","wechat"],"created_at":"2024-10-13T07:31:41.132Z","updated_at":"2025-08-22T16:09:55.107Z","avatar_url":"https://github.com/LC044.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 运行效果\n\n聊天界面\n\n![QQ截图20230421094858](6/QQ截图20230421094858.jpg)\n\n联系人信息\n\n![image-20230421095614827](6/image-20230421095614827.png)\n\n群聊界面\n\n![image-20230421095631563](6/image-20230421095631563.png)\n\n添加联系人\n\n![image-20230421095655361](6/image-20230421095655361.png)\n\n\n\n# 程序设计说明\n\n## 一、文件结构\n\n```bash\nE:\n│  main.py  // 主函数\n│  \n├─data\n│  │  icon.png  // 程序图标\n│  │  __init__.py\n│  │  \n│  └─avatar\n│      ├─08\n│      │  └─02\n│      │     080261e4427a081fc6e637b654f590ee.png   // 头像    \n│      └─f5\n│         └─20\n│            f5200f6894367c949cadd8f74c4ebe8c.png  // 头像\n│                  \n├─DB\n│   data.py  // 数据库有关的函数都在这里\n│    __init__.py\n│      \n└─Ui\n   │  __init__.py\n   │  \n   ├─chat\n   │  │  chat.py  // 聊天页面管理\n   │  │  chatUi.py  // 聊天页面Ui的py版本\n   │  │  chatUi.ui  // 聊天页面Ui的源程序\n   │  │  __init__.py\n   │  │  \n   │  ├─addContact  // 添加联系人\n   │  │      addContact.py\n   │  │      addContactUi.py\n   │  │      addContactUi.ui\n   │  │      __init__.py\n   │  │           \n   │  ├─group  // 群聊\n   │  │      addGroup.py\n   │  │      addGroup.ui\n   │  │      CreateGroup.py\n   │  │      create_groupUi.py\n   │  │      create_groupUi.ui\n   │  │      Group.py\n   │  │      GroupUi.py\n   │  │      GroupUi.ui\n   │  │      __init__.py\n   │  │      \n   │  ├─myinfo  // 个人信息查看与修改\n   │  │      myinfo.py\n   │  │      myinfoUi.py\n   │  │      myinfoUi.ui\n   │  │      __init__.py\n   │  │      \n   │  └─userinfo  // 联系人界面\n   │     \t  userinfoUi.py\n   │          userinfoUi.ui\n   │          __init__.py\n   │          \n   └─login  // 注册登录\n        login.py\n        loginUi.py\n        loginUi.ui\n        register.py\n        registerUi.py\n        registerUi.ui\n        __init__.py\n```\n\n# 使用说明\n\n## 1、导入我的数据库备份文件\n\n## 2、打开\\main\\data\\config.json\n\n```json\n//  在该文件中填写你的本地MySQL的账号密码已经数据库名，用于连接本地数据库\n{\n  \"username\": \"root\",  // MySQL用户名\n  \"password\": \"123456\",  // MySQL密码\n  \"database\": \"chat_2020303457\"  // 数据库名\n}\n```\n\n## 3、运行main.py\n\n![image-20221225212041271](6/image-20221225212041271-1671974443588-1.png)\n\n## 4、我的数据库中有一个空账号，所以点击登录即可进入聊天界面\n\n下面是数据库中存储的几个账号，可以任意选择一个登录，也可自行注册\n\n|  username  | password |     createTime      |\n| :--------: | :------: | :-----------------: |\n|            |          | 2022-12-19 20:27:07 |\n| 202030001  |  123456  | 2022-12-24 23:42:34 |\n| 2020303457 |  123456  | 2022-12-19 20:27:28 |\n| 2020303458 |  123456  | 2022-12-23 14:25:31 |\n| 2020303459 |          | 2022-12-24 21:01:42 |\n| 2020303460 |  123456  | 2022-12-25 00:01:33 |\n| 863909694  |  123456  | 2022-12-19 20:27:46 |\n\n## 5、异常处理\n\n我承认软件还有很多bug\n\n如果使用过程中有任何异常情况导致程序闪退\n\n那么请关闭软件重新登录（重启能解决80%的问题）\n\n如果还不能解决，那么请重新注册一个账号，登录新账号（重装能解决100%的问题）\n\n如果遇到了这种情况，是异常退出导致没有将用户状态设置为离线\n\n![image-20221225223025948](6/image-20221225223025948.png)\n\n请将userinfo表的status设置为-1，表示该账户已经退出登录\n\n![image-20221225223013508](6/image-20221225223013508.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flc044%2Fdb_chat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flc044%2Fdb_chat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flc044%2Fdb_chat/lists"}