|
@@ -30,7 +30,7 @@ public class GenPictureTaskService {
|
|
|
@Value("${shot.urlAddress}")
|
|
|
private String urlAddress;
|
|
|
|
|
|
- public boolean getNormalPicture(String cameraCode, String channel,String filePath,String address) {
|
|
|
+ public boolean getNormalPicture(String cameraCode, String channel,String filePath) {
|
|
|
long start = System.currentTimeMillis();
|
|
|
if (!ObjectUtils.isEmpty(cameraCode)) {
|
|
|
try {
|
|
@@ -38,12 +38,11 @@ public class GenPictureTaskService {
|
|
|
// log.debug("请求url======" + urlAddress + cameraCode + "/" + channel);
|
|
|
// }
|
|
|
URL url = new URL(urlAddress + cameraCode + "/" + channel);
|
|
|
- String fileName = address + "/" + "normal" + "/" +filePath;
|
|
|
- System.out.println("fileName:"+fileName);
|
|
|
+ System.out.println("fileName:"+filePath);
|
|
|
// if (log.isDebugEnabled()) {
|
|
|
// log.debug("正常摄像头截图开始, url: " + url + ", fileName: " + fileName);
|
|
|
// }
|
|
|
- boolean capture = cameraCaptureService.getCapture(url, cameraCode, fileName);
|
|
|
+ boolean capture = cameraCaptureService.getCapture(url, cameraCode, filePath);
|
|
|
// if (log.isDebugEnabled()) {
|
|
|
// log.debug("正常摄像头截图结束, url: " + url + (capture ? "" : ", 出现错误") + ", 共计耗时: " + ((System.currentTimeMillis() - start) / 1000) + "s");
|
|
|
// }
|