|
@@ -20,6 +20,7 @@ import com.fdkankan.model.utils.CreateObjUtil;
|
|
|
import com.fdkankan.scene.bean.SceneJsonBean;
|
|
|
import com.fdkankan.scene.entity.*;
|
|
|
import com.fdkankan.scene.service.*;
|
|
|
+import com.fdkankan.scene.util.FyunUtil;
|
|
|
import com.fdkankan.scene.vo.SceneEditControlsVO;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
@@ -51,21 +52,24 @@ public class ReverseSceneServiceImpl implements IReverseSceneService {
|
|
|
@Autowired
|
|
|
private ISceneEditControlsService sceneEditControlsService;
|
|
|
@Resource
|
|
|
- private FYunFileServiceInterface fYunFileService;
|
|
|
+ private FyunUtil fyunUtil;
|
|
|
|
|
|
@Override
|
|
|
public void reverseScene(JSONObject jsonObject) throws Exception {
|
|
|
|
|
|
String num = jsonObject.getString("num");
|
|
|
String zipPath = jsonObject.getString("path");
|
|
|
+ String fyunType = jsonObject.getString("fyunType");
|
|
|
+ String bucket = jsonObject.getString("bucket");
|
|
|
ScenePlus scenePlus = scenePlusService.getScenePlusByNum(num);
|
|
|
ScenePlusExt scenePlusExt = scenePlusExtService.getScenePlusExtByPlusId(scenePlus.getId());
|
|
|
|
|
|
String dataSource = scenePlusExt.getDataSource();
|
|
|
|
|
|
//解压
|
|
|
- fYunFileService.downloadFile(zipPath, dataSource + "/" + FileUtil.getName(zipPath));
|
|
|
- ZipUtil.unzip(zipPath, dataSource, CharsetUtil.CHARSET_GBK);
|
|
|
+ String destPath = dataSource + "/" + FileUtil.getName(zipPath);
|
|
|
+ fyunUtil.yunDownloadSs(fyunType, bucket, zipPath, destPath);
|
|
|
+ ZipUtil.unzip(destPath, dataSource, CharsetUtil.CHARSET_GBK);
|
|
|
|
|
|
//生成vision.txt
|
|
|
int shootCount = this.genVisionTxt(num, dataSource);
|