diff --git a/app/routers/yudao_aiot_alarm.py b/app/routers/yudao_aiot_alarm.py index bdf9f37..44f7835 100644 --- a/app/routers/yudao_aiot_alarm.py +++ b/app/routers/yudao_aiot_alarm.py @@ -370,11 +370,10 @@ async def _get_camera_info(device_id: str, current_user: dict) -> Optional[dict] if device_id.startswith("cam_"): try: async with httpx.AsyncClient(timeout=5) as client: - # 调用 WVP 查询单个摄像头的 API + # 调用 WVP 查询单个摄像头的 API(无需认证,已加白名单) resp = await client.get( - f"{WVP_API_BASE}/admin-api/aiot/device/camera/get", + f"{WVP_API_BASE}/api/ai/camera/get", params={"cameraCode": device_id}, - headers=headers ) if resp.status_code == 200: data = resp.json()