fix(im_llm): 代理绕过Docker内部hostname

This commit is contained in:
QihuAI Design committed 2026-07-31 08:51:15 +08:00
1 parent 96aabc31f6
commit 9a43ee244d
24 files changed
+898 -129

No files matched your search

+1 -1
View File
@@ -122,6 +122,6 @@ async def get_current_admin(
user=Depends(get_current_user),
):
"""验证当前用户为管理员"""
if user.role != "admin":
if not has_role(user.role, "admin"):
raise HTTPException(status_code=status.HTTP_403_FORBIDDEN, detail="需要管理员权限")
return user