dengsixing 4 months ago
parent
commit
abef596989

+ 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));
             });
         }