lzh
2a7fec30a9
重构: video 模块走芋道网关统一鉴权,移除独立 WVP JWT 客户端
- api/video/request.ts: 删除自实现的 WVP access-token 登录/缓存/401 续期逻辑,
直接 re-export requestClient(yudao Authorization: Bearer),
wvpRequestClient 名字仅作过渡期别名,TODO 标记后续统一重命名。
- api/video/device/index.ts: 路径从 /video/device/{proxy,user,server,...} 迁移到
后端 @RequestMapping 对齐的 /video/{proxy,ai/*,server/media_server};
删除 getAlertImageUrl(老 WVP 时代产物),删除截图 URL 里的 ?access-token。
- api/video/edge/index.ts: /video/device/device/* -> /video/ai/device/*(对齐 AiEdgeDeviceController)。
- views/video/device/camera: HEAD 探活 URL 同步,补注释说明后端需对
/video/ai/roi/snap/image permitAll 或依赖 session cookie。
- vite.config: 删除 /admin-api/video/device/* 按子路径 rewrite 到 WVP:18080 的规则,
统一走 /admin-api 到芋道网关 48080;去掉 VITE_WVP_USERNAME/PASSWORD_MD5 依赖
(安全改进:凭据不再打进客户端 bundle)。
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-24 11:40:03 +08:00
..
2025-10-22 15:41:13 +08:00
2026-04-24 11:40:03 +08:00
2026-04-24 11:40:02 +08:00
2024-07-28 14:29:05 +08:00
2026-04-24 11:40:02 +08:00
2026-04-24 11:40:02 +08:00
2025-04-19 16:41:49 +08:00
2025-11-26 15:44:00 +08:00
2024-06-08 16:33:49 +08:00
2024-06-08 16:33:49 +08:00
2025-10-16 10:28:42 +08:00
2024-07-28 14:29:05 +08:00
2026-04-24 11:40:03 +08:00