From 49d2b3fccc712b7b83e262de3d26bb63470f052a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=94=B2=E8=BE=B0=E7=94=9F=E4=BA=A7?= Date: Tue, 31 Mar 2026 19:58:07 +0800 Subject: [PATCH] =?UTF-8?q?v1.2.34:=20=E4=BF=AE=E5=A4=8D=E8=B5=84=E8=AE=AF?= =?UTF-8?q?=E5=88=97=E8=A1=A8API=E6=9C=AA=E7=99=BB=E5=BD=95=E6=97=B6?= =?UTF-8?q?=E8=BF=94=E5=9B=9E401?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/app/routers/information.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) ): """获取资讯列表(公开,无需登录)"""