fix spell error and update md

This commit is contained in:
RainSun 2020-01-23 18:16:16 +08:00
parent c2dffeaa15
commit 2e09048d66
2 changed files with 3 additions and 3 deletions

View File

@ -14,10 +14,10 @@ pip install requests
pip install bs4
pip install gunicorn
// 设置全局变量
export FLASK_APP=cust.py
export FLASK_APP=coc.py
export FLASK_ENV=development
// 启动临时服务
flask run --host=0.0.0.0 -p 5003
flask run --host=0.0.0.0 -p 8001
// 启动永久服务
gunicorn coc:app -c gunicorn.conf
// 查看已启动服务

View File

@ -20,7 +20,7 @@ def manageLogin(request):
# 登录成功并进行查询
grade = getGrade(res['ip'], res['s'])
if grade['errcode'] == 200:
sendMail('起来砖啦!', '教务系统成绩信息已恢复查询,请查看', ['1144131090@qq.com','nayiyewosile@qq.com'])
sendMail('起来砖啦!', '教务系统成绩信息已恢复查询,请查看', ['1144131090@qq.com','nayiyewosile@qq.com'])
schedule = getSchedule(res['ip'], res['s'])
return {'errcode': '200', 'errmsg': 'ok', 'student_name':res['student_name'], 'student_id':res['student_id'], 'grade': grade, 'schedule': schedule}
else: