|
@@ -802,6 +802,8 @@ public class SceneEditInfoServiceImpl extends ServiceImpl<ISceneEditInfoMapper,
|
|
|
FileUtils.deleteFile(filePath);
|
|
|
});
|
|
|
}
|
|
|
+
|
|
|
+ //判断成功的图片
|
|
|
uploadFileList = FileUtil.getFileList(targetImagesPath);
|
|
|
if(CollUtil.isEmpty(uploadFileList)){
|
|
|
if(CollUtil.isNotEmpty(notExistFileList)){
|
|
@@ -809,7 +811,7 @@ public class SceneEditInfoServiceImpl extends ServiceImpl<ISceneEditInfoMapper,
|
|
|
return filePath.substring(filePath.lastIndexOf(File.separator) + 1);
|
|
|
}).collect(Collectors.toList());
|
|
|
}
|
|
|
- return ResultData.ok(notExistFileList);
|
|
|
+ return ResultData.ok(new UploadPanoramaVO(0, notExistFileList));
|
|
|
}
|
|
|
|
|
|
//上传
|
|
@@ -936,7 +938,7 @@ public class SceneEditInfoServiceImpl extends ServiceImpl<ISceneEditInfoMapper,
|
|
|
}).collect(Collectors.toList());
|
|
|
}
|
|
|
|
|
|
- return ResultData.ok(notExistFileList);
|
|
|
+ return ResultData.ok(new UploadPanoramaVO(uploadFileList.size(), notExistFileList));
|
|
|
}
|
|
|
|
|
|
@Override
|