lyhzzz 3 年 前
コミット
5f8aff00b7

+ 2 - 2
src/main/java/com/fdkankan/fusion/service/impl/ModelServiceImpl.java

@@ -103,7 +103,7 @@ public class ModelServiceImpl extends ServiceImpl<IModelMapper, Model> implement
             if(fileName.toLowerCase().contains("rar")){
                 ShellUtil.unRar(newObjFile.getPath(),objPath);
             }
-            File objPathFile = new File(objPath + "/"+modelName);
+            File objPathFile = new File(objPath );
             if(!objPathFile.isDirectory()){
                 throw new BusinessException(ResultCode.UPLOAD_FILE_TYPE_ERROR);
             }
@@ -118,7 +118,7 @@ public class ModelServiceImpl extends ServiceImpl<IModelMapper, Model> implement
                     if(glbPath.contains(".OBJ")){
                         glbName = name.replace(".OBJ",".glb");
                     }
-                    OBJToGLBUtil.objToGlb(objPath+"/"+modelName,name,  glbPath+"/"+glbName);
+                    OBJToGLBUtil.objToGlb(objPath,name,  glbPath+"/"+glbName);
                     glbOssPath = glbOssPath.replace("mesh.glb",glbName);
                 }
                 if(name.contains(".ply")){