flask init-cache

This commit is contained in:
pycook
2019-11-11 15:46:57 +08:00
parent 5f2a0d1a7b
commit 173c120b64
7 changed files with 18 additions and 10 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())