dengsixing 4 月之前
父节点
当前提交
abef596989
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/main/java/com/fdkankan/jp/xspace/service/impl/UnityServiceImpl.java

+ 2 - 2
src/main/java/com/fdkankan/jp/xspace/service/impl/UnityServiceImpl.java

@@ -176,12 +176,12 @@ public class UnityServiceImpl implements IUnityService {
         });
 
         //三维模型
-        String ossBoxModelPath = String.format(OSSPathConstant.SCENE_VIEW_DATA_USER, bean.getNum()) + "boxModels/";
+        String ossBoxModelPath = targetUserPath + "boxModels/";
         String boxModelPath = workPath + "user/boxModels/";
         List<File> files = FileUtil.loopFiles(boxModelPath);
         if(CollUtil.isNotEmpty(files)){
             files.stream().forEach(file->{
-                fYunFileService.uploadFile(file.getAbsolutePath(), file.getAbsolutePath().replace(boxModelPath, xspaceSceneOssPath));
+                fYunFileService.uploadFile(file.getAbsolutePath(), file.getAbsolutePath().replace(boxModelPath, ossBoxModelPath));
             });
         }