Browse Source

fix:视频巡检,当获取不到截图时继续执行

zhongwei
luyie 2 months ago
parent
commit
a8b2b66065
  1. 9
      hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/task/schedule/VideoTaskSchedule.java

9
hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/task/schedule/VideoTaskSchedule.java

@ -182,9 +182,16 @@ public class VideoTaskSchedule {
}
}
String picUrl = null;
// 调用海康威视api实现手动截屏回传至fileUrl
if (Func.isNotEmpty(camera.getPointCode())) {
String picUrl = hikApiService.manualCapture(camera.getPointCode());
try {
picUrl = hikApiService.manualCapture(camera.getPointCode());
} catch (Exception e) {
log.error("get picture url fail", e);
}
}
if (Func.isNotEmpty(picUrl)) {
record.setFileUrl(picUrl);
record.setCurrentValue(picUrl);
pictureHandle(picUrl, content.getContentId(), record, task);

Loading…
Cancel
Save