瀏覽代碼

no message

libushang 1 月之前
父節點
當前提交
f0a8572626
共有 1 個文件被更改,包括 2 次插入1 次删除
  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):