lyhzzz 3 anos atrás
pai
commit
88df9378c8

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

@@ -87,7 +87,7 @@ public class ModelServiceImpl extends ServiceImpl<IModelMapper, Model> implement
             String glbPath = String.format(GLB_PATH , "modelId_"+model.getModelId()) +"/"+modelName +"/mesh.glb";
             String glbOssPath = String.format(FilePath.GLB_OSS_PATH, model.getModelId());
             model.setModelObjUrl(objPath);
-            model.setModelGlbUrl(glbOssPath);
+            model.setModelGlbUrl(queryPath + glbOssPath);
 
             File newObjFile = new File(objPath +"/" + fileName);
             if(!newObjFile.getParentFile().exists()){

+ 2 - 2
src/main/resources/application-local.yaml

@@ -24,5 +24,5 @@ spring:
       uri: mongodb://4dage:1234@120.25.146.52:27017/laser
 
 local:
-  obj_path: D:\fusion\model\%s\mesh.obj
-  glb_path: D:\fusion\model\%s\mesh.glb
+  obj_path: D:\fusion\model\%s
+  glb_path: D:\fusion\model\%s