|
@@ -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;
|