feat(aiot): Edge截图方案替代ZLM截图,支持COS URL返回
- 新增 IAiScreenshotService 接口和实现:通过 Redis Stream 请求 Edge 截图,轮询等待结果,支持 5 分钟缓存和 force 刷新 - AiRoiController.getSnap() 从 ZLM 二进制截图改为返回 JSON(含 COS URL) - 前端 aiRoi.js 新增 getSnapUrl 方法 - roiConfig.vue 改为异步加载截图,增加 loading 状态和错误提示 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -62,3 +62,11 @@ export function updateAlgoParams(data) {
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
export function getSnapUrl(cameraCode, force = false) {
|
||||
return request({
|
||||
method: 'get',
|
||||
url: '/api/ai/roi/snap',
|
||||
params: { cameraCode, force }
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user