質問編集履歴
2
修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -10,9 +10,21 @@
|
|
10
10
|
|
11
11
|
def check_access_token(func):
|
12
12
|
|
13
|
+
@wraps(func)
|
14
|
+
|
15
|
+
def wrapper(*args, **kwargs):
|
16
|
+
|
17
|
+
...
|
18
|
+
|
19
|
+
...
|
20
|
+
|
13
21
|
if not rows_all:
|
14
22
|
|
15
23
|
abort(401, {"error_message": "access token is ineffective."})
|
24
|
+
|
25
|
+
...
|
26
|
+
|
27
|
+
...
|
16
28
|
|
17
29
|
```
|
18
30
|
|
1
修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -8,7 +8,7 @@
|
|
8
8
|
|
9
9
|
```flask
|
10
10
|
|
11
|
-
|
11
|
+
def check_access_token(func):
|
12
12
|
|
13
13
|
if not rows_all:
|
14
14
|
|