dengsixing 1 anno fa
parent
commit
2b1a09f486

+ 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 localMeshPath = workPath + "mesh/";
         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->{
-            fYunFileService.downloadFile(v, localMeshPath);
+            fYunFileService.downloadFile(v, localMeshPath + v.replace(meshKey, ""));
         });
 
         return workPath;