소스 검색

用户登入及接口认证token完善

zhangnaiwen 2 년 전
부모
커밋
cdd716c207
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/app/utils/jwt_util.py

+ 1 - 1
src/app/utils/jwt_util.py

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