diff --git a/main.py b/main.py index 61e7f51..ff768c5 100644 --- a/main.py +++ b/main.py @@ -60,7 +60,7 @@ async def global_auth(request: Request): # return # 验证 token = request.headers.get("Authorization") - if token != "Bear 567e33c876a2": + if token != "Bearer 567e33c876a2": raise HTTPException(status_code=401, detail="Invalid token") # 全局依赖项