Ver código fonte

Merge branch 'hotfix-3dtiles上传模型问题脚本多斜杠-20230113' into release

dsx 2 anos atrás
pai
commit
63aa947dd7

+ 3 - 2
src/main/java/com/fdkankan/scene/service/impl/SceneProServiceImpl.java

@@ -832,9 +832,10 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
 
 
         //调用算法
-        String command = "bash //home/ubuntu/bin/Obj2Tiles.sh " + path;
+        String command = "bash /home/ubuntu/bin/Obj2Tiles.sh " + path;
         log.info("上传3dtiles模型开始, num:{}, targetPath:{}", num, path);
-        RuntimeUtil.exec(command);
+//        RuntimeUtil.exec(command);
+        CreateObjUtil.callshell(command);
         log.info("上传3dtiles模型结束, num:{}, targetPath:{}", num, path);
 
         //检测计算结果