|
@@ -3424,10 +3424,15 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
|
|
|
}
|
|
|
|
|
|
//文件上传的位置可以自定义
|
|
|
- String path = sceneProExt.getDataSource() + "_obj2txt";
|
|
|
- String zipPath = path + "/zip/";
|
|
|
- String filePath = path + "/extras/";
|
|
|
- String resultPath = path + "/results/";
|
|
|
+// String path = sceneProExt.getDataSource() + "_obj2txt";
|
|
|
+// String zipPath = path + "/zip/";
|
|
|
+// String filePath = path + "/extras/";
|
|
|
+// String resultPath = path + "/results/";
|
|
|
+
|
|
|
+ String path = "F:\\uploadModel" + "_obj2txt";
|
|
|
+ String zipPath = path + "\\zip\\";
|
|
|
+ String filePath = path + "\\extras\\";
|
|
|
+ String resultPath = path + "\\results\\";
|
|
|
|
|
|
//压缩文件处理:解压缩,解压缩后复制等操作
|
|
|
this.objAndImgFileHandler(resultPath, filePath, zipPath, file);
|
|
@@ -3626,7 +3631,7 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
|
|
|
}
|
|
|
|
|
|
//压缩文件中必须有且仅有一个obj和mtl文件,否则抛出异常
|
|
|
- if(!mtlFlag && !objFlag){
|
|
|
+ if(!mtlFlag || !objFlag){
|
|
|
throw new BusinessException(ErrorCode.FAILURE_CODE_5059);
|
|
|
}
|
|
|
}
|