|
@@ -85,9 +85,9 @@ public class BuildObjServiceImpl implements IBuildSceneService {
|
|
|
log.error("data.fdage文件不存在");
|
|
|
return ;
|
|
|
}
|
|
|
- if(!jsonObject.containsKey("exportMeshObj")){
|
|
|
+ if (!jsonObject.containsKey("exportMeshObj") || jsonObject.getIntValue("exportMeshObj") != 1) {
|
|
|
// 写入data.fdage 防止重算
|
|
|
- jsonObject.put("exportMeshObj",1);
|
|
|
+ jsonObject.put("exportMeshObj", 1);
|
|
|
FileUtils.writeFile(folderPath.getAbsolutePath() + File.separator + "capture" + File.separator + "data.fdage", jsonObject.toJSONString());
|
|
|
fYunFileService.uploadFile(folderPath.getAbsolutePath() + File.separator + "capture" + File.separator + "data.fdage",
|
|
|
ConstantFilePath.OSS_PREFIX + path.replace(ConstantFilePath.BUILD_MODEL_LASER_PATH, "") + "/data.fdage");
|