Browse Source

no message

libushang 1 month ago
parent
commit
f0a8572626
1 changed files with 2 additions and 1 deletions
  1. 2 1
      main.py

+ 2 - 1
main.py

@@ -65,7 +65,8 @@ def app_startup():
 async def exception_handler(request: Request, exc: TokenException):
     return JSONResponse(
         status_code=200,
-        content={"errcode": "4001", "errmsg":"验证不通过"}
+        content={"code": 401, "msg":"Token过期"}
+        # content={"errcode": "4001", "errmsg":"验证不通过"}
     )
 @app.exception_handler(RoleException)
 async def role_exception_handler(request: Request, exc: RoleException):