|
@@ -8,6 +8,7 @@ import cn.hutool.core.util.ZipUtil;
|
|
|
import com.alibaba.fastjson.JSON;
|
|
|
import com.alibaba.fastjson.JSONArray;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
+import com.alibaba.spring.util.FieldUtils;
|
|
|
import com.fdkankan.common.constant.*;
|
|
|
import com.fdkankan.common.exception.BusinessException;
|
|
|
import com.fdkankan.common.util.FileUtils;
|
|
@@ -99,6 +100,8 @@ public class ReverseSceneServiceImpl implements IReverseSceneService {
|
|
|
|
|
|
this.genSceneJson(num);
|
|
|
|
|
|
+ FileUtil.del(dataSource);
|
|
|
+
|
|
|
}catch (Exception e){
|
|
|
scenePlus.setSceneStatus(CommonSuccessStatus.FAIL.code());
|
|
|
scenePlusService.updateById(scenePlus);
|
|
@@ -272,6 +275,8 @@ public class ReverseSceneServiceImpl implements IReverseSceneService {
|
|
|
FileUtil.writeUtf8String(JSON.toJSONString(dataJson), target + File.separator+"data.json");
|
|
|
|
|
|
this.uploadPanoramaHandler(num, target, targetImagesPath);
|
|
|
+
|
|
|
+ FileUtil.del(target);
|
|
|
}
|
|
|
|
|
|
public void uploadPanoramaHandler(String num,String target, String targetImagesPath) throws Exception {
|
|
@@ -377,6 +382,7 @@ public class ReverseSceneServiceImpl implements IReverseSceneService {
|
|
|
this.writeDataJson(path);
|
|
|
CreateObjUtil.build3dModel(path , "1");
|
|
|
this.uploadFileofterBuildDamModel(path, filePath, num);
|
|
|
+ FileUtil.del(path);
|
|
|
}
|
|
|
|
|
|
private void writeDataJson(String path){
|