diff --git a/backend/app/routers/information.py b/backend/app/routers/information.py index d13a100..2fa5e17 100644 --- a/backend/app/routers/information.py +++ b/backend/app/routers/information.py @@ -417,10 +417,14 @@ def delete_information( db: Session = Depends(get_db) ): """删除资讯""" - info = db.query(Information).filter( - Information.id == info_id, - Information.user_id == current_user.f99_90_id - ).first() + # 允许admin删除任何人的资讯 + if current_user.role == "admin": + info = db.query(Information).filter(Information.id == info_id).first() + else: + info = db.query(Information).filter( + Information.id == info_id, + Information.user_id == current_user.f99_90_id + ).first() if not info: raise HTTPException(status_code=404, detail="资讯不存在或无权删除") diff --git a/frontend/public/static/images/jiachenlong-logo.png b/frontend/public/static/images/jiachenlong-logo.png new file mode 100644 index 0000000..247598e Binary files /dev/null and b/frontend/public/static/images/jiachenlong-logo.png differ