修复:截图请求 device_id 优先用 ROI 表,降级用 stream_proxy.edge_device_id
This commit is contained in:
@@ -131,9 +131,10 @@ public class AiScreenshotServiceImpl implements IAiScreenshotService {
|
||||
if (rtspUrl != null && !rtspUrl.isEmpty()) {
|
||||
fields.put("rtsp_url", rtspUrl);
|
||||
}
|
||||
// 多 Edge 设备隔离:带上绑定的 edge_device_id
|
||||
String edgeDeviceId = proxy.getEdgeDeviceId();
|
||||
if (edgeDeviceId != null && !edgeDeviceId.isEmpty()) {
|
||||
// 多 Edge 设备隔离:优先用 ROI 表的 device_id,没有则用 stream_proxy 的 edge_device_id
|
||||
if (!fields.containsKey("device_id")) {
|
||||
String edgeDeviceId = proxy.getEdgeDeviceId();
|
||||
if (edgeDeviceId != null && !edgeDeviceId.isEmpty()) {
|
||||
fields.put("device_id", edgeDeviceId);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user