|
|
@@ -339,15 +339,15 @@ public class NjsSceneBoxModelServiceImpl extends ServiceImpl<INjsSceneBoxModelMa
|
|
|
}
|
|
|
|
|
|
//上传glb
|
|
|
- fYunFileService.uploadFile(glbPath, String.format(UploadFilePath.USER_EDIT_PATH, num) + "njsBoxModels/" + sid + ".glb");
|
|
|
+ fYunFileService.uploadFile(glbPath, String.format(UploadFilePath.USER_EDIT_PATH, num) + "njsBoxModel/" + sid + ".glb");
|
|
|
|
|
|
//上传原始obj相关文件
|
|
|
- String objPath = String.format(UploadFilePath.USER_EDIT_PATH, num) + "njsBoxModels/" + sid + "/";
|
|
|
+ String objPath = String.format(UploadFilePath.USER_EDIT_PATH, num) + "njsBoxModel/" + sid + "/";
|
|
|
//先删除旧的,只需要保留最新的
|
|
|
fYunFileService.deleteFolder(objPath);
|
|
|
List<File> files = FileUtil.loopFiles(srcPath);
|
|
|
files.stream().forEach(v->{
|
|
|
- String ossKey = String.format(UploadFilePath.USER_EDIT_PATH, num) + "njsBoxModels/" + sid + "/" + v.getAbsolutePath().replace(srcPath, "");
|
|
|
+ String ossKey = String.format(UploadFilePath.USER_EDIT_PATH, num) + "njsBoxModel/" + sid + "/" + v.getAbsolutePath().replace(srcPath, "");
|
|
|
fYunFileService.uploadFile(v.getAbsolutePath(), ossKey);
|
|
|
});
|
|
|
|