diff --git a/backend/app/routers/information.py b/backend/app/routers/information.py index 2fa5e17..b129c5d 100644 --- a/backend/app/routers/information.py +++ b/backend/app/routers/information.py @@ -86,7 +86,7 @@ def get_information_list( status: str = Query("active", description="状态: active/closed/expired"), page: int = Query(1, ge=1), page_size: int = Query(20, ge=1, le=100), - current_user: User = Depends(get_current_user), + current_user: Optional[User] = Depends(get_current_user), db: Session = Depends(get_db) ): """获取资讯列表(公开,无需登录)"""