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