flask init-cache

This commit is contained in:
pycook
2019-11-11 15:46:57 +08:00
parent 46213dd758
commit 2935ca5923
6 changed files with 16 additions and 8 deletions

View File

@@ -1,5 +1,6 @@
# -*- coding:utf-8 -*-
from __future__ import unicode_literals
import hashlib
@@ -11,7 +12,7 @@ from future.moves.urllib.parse import urlparse
def build_api_key(path, params):
g.user is not None or abort(403, u"您得登陆才能进行该操作")
g.user is not None or abort(403, "您得登陆才能进行该操作")
key = g.user.key
secret = g.user.secret
values = "".join([str(params[k]) for k in sorted(params.keys())