|
@@ -50,6 +50,6 @@ def login_required(func):
|
|
if g.user_id is not None:
|
|
if g.user_id is not None:
|
|
return func(*args, **kwargs)
|
|
return func(*args, **kwargs)
|
|
else:
|
|
else:
|
|
- return jsonify(code=StatesCode.UNKNOWN_ERROR, message='Invalid token'), 401
|
|
|
|
|
|
+ return jsonify(code=StatesCode.UNKNOWN_ERROR, message='无效的token')
|
|
|
|
|
|
return wrapper
|
|
return wrapper
|