|
@@ -3,6 +3,7 @@ package com.fdkankan.contro.service.impl;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.fdkankan.common.util.FileUtils;
|
|
|
import com.fdkankan.contro.service.IBuildScenePreService;
|
|
|
+import com.fdkankan.fyun.face.FYunFileServiceInterface;
|
|
|
import com.fdkankan.model.constants.ConstantFilePath;
|
|
|
import com.fdkankan.model.utils.CreateObjUtil;
|
|
|
import com.fdkankan.model.utils.SceneUtil;
|
|
@@ -44,6 +45,9 @@ public class BuildScenePreServiceImpl implements IBuildScenePreService {
|
|
|
@Autowired
|
|
|
private RabbitMqProducer mqProducer;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private FYunFileServiceInterface fYunFileService;
|
|
|
+
|
|
|
public static String hostName;
|
|
|
|
|
|
|
|
@@ -139,9 +143,9 @@ public class BuildScenePreServiceImpl implements IBuildScenePreService {
|
|
|
//删除压缩包
|
|
|
FileUtils.delFile(path + File.separator + "capture" + File.separator + imgsName);
|
|
|
}else if(cameraType == 14) {
|
|
|
- CreateObjUtil.ossUtilCp(ossPath,path + File.separator + "capture");
|
|
|
+ fYunFileService.downloadFile(ossPath,path + File.separator + "capture");
|
|
|
} else{
|
|
|
- CreateObjUtil.ossUtilCp(ossPath,path + File.separator + "capture");
|
|
|
+ fYunFileService.downloadFile(ossPath,path + File.separator + "capture");
|
|
|
}
|
|
|
}
|
|
|
}
|