{"id":13626044,"url":"https://github.com/paicha/gxgk-wechat-server","last_synced_at":"2025-09-27T03:30:36.861Z","repository":{"id":36569403,"uuid":"40875324","full_name":"paicha/gxgk-wechat-server","owner":"paicha","description":"校园微信公众号，使用 Python、Flask、Redis、MySQL、Celery [DEPRECATED]","archived":true,"fork":false,"pushed_at":"2022-03-03T01:57:27.000Z","size":309,"stargazers_count":1386,"open_issues_count":1,"forks_count":520,"subscribers_count":130,"default_branch":"master","last_synced_at":"2024-09-26T20:23:19.628Z","etag":null,"topics":["flask","python","wechat"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"ClickHouse/ClickHouse","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/paicha.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}},"created_at":"2015-08-17T07:54:29.000Z","updated_at":"2024-09-24T20:50:39.000Z","dependencies_parsed_at":"2022-09-03T23:31:17.215Z","dependency_job_id":null,"html_url":"https://github.com/paicha/gxgk-wechat-server","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paicha%2Fgxgk-wechat-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paicha%2Fgxgk-wechat-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paicha%2Fgxgk-wechat-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paicha%2Fgxgk-wechat-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/paicha","download_url":"https://codeload.github.com/paicha/gxgk-wechat-server/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234376917,"owners_count":18822416,"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","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":["flask","python","wechat"],"created_at":"2024-08-01T21:02:08.497Z","updated_at":"2025-09-27T03:30:36.368Z","avatar_url":"https://github.com/paicha.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"This code is no longer being maintained.\n\n项目已经不再维护，开源的目的更多是给新手一个参考 Demo\n\n# gxgk-wechat-server\n校园微信公众号后端，为在校学生提供一系列信息查询与便民服务。\n\n\n**预览**：\n![gxgk](https://user-images.githubusercontent.com/5148245/156481489-c0e0f757-a3bd-4412-9231-0998ed4b7686.jpeg)\n\n**主要功能**：\n\n- [x] 期末成绩查询\n    - [x] 手动查询\n    - [x] 微信分享成绩单\n- [x] 快递查询\n    - [x] 单号查询\n    - [x] 扫码查询\n    - [x] 包裹动态，自动提醒\n- [x] 校内图书馆\n    - [x] 图书搜索\n    - [x] 借书记录\n    - [x] 一键续借\n    - [x] 还书提醒\n- [x] 签到排行榜\n- [x] 机器人陪聊\n\n**其他**：\n\n- [x] 天气查询\n- [x] 常用电话\n- [x] 公交路线\n- [x] 校历查询\n- [x] 学校新闻\n- [x] 四六级查询\n- [x] 明信片查询\n- [x] 随机音乐\n- [x] 气象雷达\n- [x] 网页游戏\n- [x] 莞香广科论坛\n- [x] 客服留言\n- [x] 合作信息\n\n补充说明：\n\n- 依赖外部 API 的操作使用客服接口异步回复，需要通过微信认证\n- 正方教务系统与图书馆查询均使用模拟登陆\n- 字典、正则匹配关键词，避免过多的条件语句嵌套\n- 场景状态，支持上下文回复\n- 全局保存、刷新微信 access_token\n- 关键词兼容繁体、全角空格\n- 长文本的回复使用图文信息进行排版\n- 前端 UI 使用 WeUI 统一风格\n\n## 快速开始\n\n安装 MySQL、Redis\n```\n略\n```\n\n安装依赖\n\n```\npip install -r requirements.txt\n```\n\n创建配置文件\n```\ncp instance/config.example instance/config.py\nvi instance/config.py\n```\n\n初始化数据库\n\n```\n# into Python shell\n\u003e\u003e\u003e from main.models import db\n\u003e\u003e\u003e db.create_all()\n```\n\n运行\n\n```\npython run.py\n```\n\n运行队列任务\n\n```\ncelery -A main.celery worker --beat -l info\n```\n\n测试\n\n```\n这个开发者很懒，暂时没写下什么测试……\n```\n\n部署\n\n```\n# using gunicorn\npip install gunicorn\n\n# run\ngunicorn -w 3 run:app -p wechat.pid -b 127.0.0.1:8000 -D --log-level warning --error-logfile gunicorn-error.log\n\n# reload\nkill -HUP `cat wechat.pid`\n```\n\n## License\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaicha%2Fgxgk-wechat-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpaicha%2Fgxgk-wechat-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaicha%2Fgxgk-wechat-server/lists"}