cust2coc
This commit is contained in:
parent
458d91e992
commit
8d426df0bc
@ -19,7 +19,7 @@ export FLASK_ENV=development
|
||||
// 启动临时服务
|
||||
flask run --host=0.0.0.0 -p 5003
|
||||
// 启动永久服务
|
||||
gunicorn cust:app -c gunicorn.conf
|
||||
gunicorn coc:app -c gunicorn.conf
|
||||
// 查看已启动服务
|
||||
pstree -ap|grep gunicorn
|
||||
// 关闭某服务
|
||||
|
@ -27,17 +27,18 @@ def manageLogin(request):
|
||||
|
||||
# MD5 校验
|
||||
def checkData(data):
|
||||
temp = data.copy()
|
||||
try:
|
||||
temp.drop('sign')
|
||||
except KeyError:
|
||||
pass
|
||||
p = sorted([x for x in d.items() if (x[1] or x[1] == 0)], key=lambda x: x[0])
|
||||
p = unquote_plus(urlencode(p))
|
||||
h = md5()
|
||||
h.update(p.encode())
|
||||
r = h.hexdigest().upper()
|
||||
return r == data['sign']
|
||||
# temp = data.copy()
|
||||
# try:
|
||||
# temp.drop('sign')
|
||||
# except KeyError:
|
||||
# pass
|
||||
# p = sorted([x for x in d.items() if (x[1] or x[1] == 0)], key=lambda x: x[0])
|
||||
# p = unquote_plus(urlencode(p))
|
||||
# h = md5()
|
||||
# h.update(p.encode())
|
||||
# r = h.hexdigest().upper()
|
||||
# return r == data['sign']
|
||||
return True
|
||||
|
||||
# 创建会话
|
||||
def connect(data):
|
||||
|
Loading…
x
Reference in New Issue
Block a user