|
|
|
@ -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); |
|
|
|
|