From a8b2b66065db7dd9d9c27ec45dcf41a8fde8c7b1 Mon Sep 17 00:00:00 2001 From: luyie Date: Fri, 20 Sep 2024 11:19:56 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E8=A7=86=E9=A2=91=E5=B7=A1=E6=A3=80?= =?UTF-8?q?=EF=BC=8C=E5=BD=93=E8=8E=B7=E5=8F=96=E4=B8=8D=E5=88=B0=E6=88=AA?= =?UTF-8?q?=E5=9B=BE=E6=97=B6=E7=BB=A7=E7=BB=AD=E6=89=A7=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/hnac/hzinfo/inspect/task/schedule/VideoTaskSchedule.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/task/schedule/VideoTaskSchedule.java b/hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/task/schedule/VideoTaskSchedule.java index 12c6a60..bd13fb4 100644 --- a/hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/task/schedule/VideoTaskSchedule.java +++ b/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);