lyhzzz il y a 3 ans
Parent
commit
3ae50df7d4

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

@@ -128,10 +128,8 @@ public class ModelServiceImpl extends ServiceImpl<IModelMapper, Model> implement
                 model.setModelType("las");
             }
             if("las".equals(model.getModelType()) || "ply".equals(model.getModelType()) ){
-                glbOssPath = glbOssPath.replace("model","modelId_"+model.getModelId());
-                glbOssPath = glbOssPath.replace("glb","res");
-                glbOssPath = glbOssPath.replace("mesh.glb","webcloud");
                 mntFile =  OBJToGLBUtil.lasOrPlyToBin(file1);
+                glbOssPath = mntFile.getPath().replace("/mnt/","")+"/webcloud";
                 uploadToOssUtil.uploadFileOss(mntFile ,glbOssPath);
             }