xiewenjie před 3 roky
rodič
revize
1158966272

+ 4 - 4
sxz-core/src/main/java/com/fdkk/sxz/other/listener/RunBuild.java

@@ -161,8 +161,8 @@ public class RunBuild {
                         checkFlag = checkMviewFile(path, fileId, type);
                         if (checkFlag) {
                             //obj转换成glb格式
-                            String glbPath = path.replace(".obj", ".glb");
-                            String objPath = path.replace(".obj", ".glb");
+                            String objPath = path.replace(".fdage", ".obj");
+                            String glbPath = path.replace(".fdage", ".glb");
                             RunBuild.log.info("obj转换成glb格式路径-{}", glbPath);
                             CreateObjUtil.objToGlb(objPath, glbPath);
                             uploadToOssUtil.uploadTo4dTjw(glbPath, "domain/eHome/furniture/models/" + fileId + ".glb");
@@ -183,8 +183,8 @@ public class RunBuild {
                         if (checkFlag) {
                             //obj转换成glb格式
                             RunBuild.log.info("配件obj转换成glb格式");
-                            String glbPath = path.replace(".obj", ".glb");
-                            String objPath = path.replace(".obj", ".glb");
+                            String objPath = path.replace(".fdage", ".obj");
+                            String glbPath = path.replace(".fdage", ".glb");
                             RunBuild.log.info("obj转换成glb格式路径-{}", glbPath);
                             CreateObjUtil.objToGlb(objPath, glbPath);
                             uploadToOssUtil.uploadTo4dTjw(glbPath, "domain/eHome/furniture/models/" + fileId + ".glb");