Bläddra i källkod

修改生成obj的逻辑

tianboguang 2 år sedan
förälder
incheckning
757a7e5f57

+ 2 - 2
src/main/java/com/fdkankan/contro/mq/service/impl/BuildObjServiceImpl.java

@@ -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");