11 Star 21 Fork 14

jrh / gxgk-wechat-server

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

gxgk-wechat-server

莞香广科微信公众号后端,为在校学生提供一系列信息查询与便民服务。微信号GXGKCAT

预览"预览"

主要功能

  • 期末成绩查询
    • 手动查询
    • 微信分享成绩单
  • 快递查询
    • 单号查询
    • 扫码查询
    • 包裹动态,自动提醒
  • 校内图书馆
    • 图书搜索
    • 借书记录
    • 一键续借
    • 还书提醒
  • 签到排行榜
  • 机器人陪聊

其他

  • 天气查询
  • 常用电话
  • 公交路线
  • 校历查询
  • 学校新闻
  • 四六级查询
  • 明信片查询
  • 随机音乐
  • 气象雷达
  • 网页游戏
  • 莞香广科论坛
  • 客服留言
  • 合作信息

补充说明:

  • 依赖外部 API 的操作使用客服接口异步回复,需要通过微信认证
  • 正方教务系统与图书馆查询均使用模拟登陆
  • 字典、正则匹配关键词,避免过多的条件语句嵌套
  • 场景状态,支持上下文回复
  • 全局保存、刷新微信 access_token
  • 关键词兼容繁体、全角空格
  • 长文本的回复使用图文信息进行排版
  • 前端 UI 使用 WeUI 统一风格

快速开始

安装 MySQL、Redis

安装依赖

pip install -r requirements.txt

创建配置文件

cp instance/config.example instance/config.py
vi instance/config.py

初始化数据库

# into Python shell
>>> from main.models import db
>>> db.create_all()

运行

python run.py

运行队列任务

celery -A main.celery worker --beat -l info

测试

这个开发者很懒,暂时没写下什么测试……

部署

# using gunicorn
pip install gunicorn

# run
gunicorn run:app -p wechat.pid -b 127.0.0.1:8000 -D

# reload
kill -HUP `cat wechat.pid`

License

MIT

The MIT License (MIT) Copyright (c) 2015 赖嘉伟 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

莞香广科微信公众号后端,使用 Python、Flask、Redis、MySQL、Celery 展开 收起
Python
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Python
1
https://gitee.com/jrh/gxgk-wechat-server.git
git@gitee.com:jrh/gxgk-wechat-server.git
jrh
gxgk-wechat-server
gxgk-wechat-server
master

搜索帮助