dengsixing пре 1 година
родитељ
комит
2b1a09f486
1 измењених фајлова са 3 додато и 2 уклоњено
  1. 3 2
      src/main/java/com/fdkankan/jp/xspace/service/impl/UnityServiceImpl.java

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

@@ -61,9 +61,10 @@ public class UnityServiceImpl implements IUnityService {
         String workPath = NasPathConstant.UNITY_WORK_PATH + bean.getNum() + "/" + bean.getSerial() + "/";
         String workPath = NasPathConstant.UNITY_WORK_PATH + bean.getNum() + "/" + bean.getSerial() + "/";
         String localMeshPath = workPath + "mesh/";
         String localMeshPath = workPath + "mesh/";
         FileUtil.mkdir(localMeshPath);
         FileUtil.mkdir(localMeshPath);
-        List<String> fileList = fYunFileService.listRemoteFiles(String.format(OSSPathConstant.SCENE_VIEW_DATA_DATA, num) + "mesh/");
+        String meshKey = String.format(OSSPathConstant.SCENE_VIEW_DATA_DATA, num) + "mesh/";
+        List<String> fileList = fYunFileService.listRemoteFiles(meshKey);
         fileList.stream().forEach(v->{
         fileList.stream().forEach(v->{
-            fYunFileService.downloadFile(v, localMeshPath);
+            fYunFileService.downloadFile(v, localMeshPath + v.replace(meshKey, ""));
         });
         });
 
 
         return workPath;
         return workPath;