|
@@ -134,18 +134,19 @@ public class InnerApiServiceImpl implements IInnerApiService {
|
|
|
//删除压缩包
|
|
|
// new File(dataSource + file.getOriginalFilename()).delete();
|
|
|
|
|
|
- List<String> fileList = new ArrayList<>();
|
|
|
- FileUtils.readfilePath(dataSource, fileList);
|
|
|
- String ossPath = "";
|
|
|
- Map<String, String> uploadMap = new HashMap<>();
|
|
|
- for (String filePath : fileList) {
|
|
|
- ossPath = filePath.replace(dataSource, "images/images" + sceneNum + "/");
|
|
|
- if(ossPath.endsWith("/")){
|
|
|
- ossPath = ossPath.substring(0, ossPath.lastIndexOf("/"));
|
|
|
- }
|
|
|
- uploadMap.put(filePath, ossPath);
|
|
|
- }
|
|
|
- fYunFileService.uploadMulFiles(uploadMap);
|
|
|
+// List<String> fileList = new ArrayList<>();
|
|
|
+// FileUtils.readfilePath(dataSource, fileList);
|
|
|
+// String ossPath = "";
|
|
|
+// Map<String, String> uploadMap = new HashMap<>();
|
|
|
+// for (String filePath : fileList) {
|
|
|
+// ossPath = filePath.replace(dataSource, "images/images" + sceneNum + "/");
|
|
|
+// if(ossPath.endsWith("/")){
|
|
|
+// ossPath = ossPath.substring(0, ossPath.lastIndexOf("/"));
|
|
|
+// }
|
|
|
+// uploadMap.put(filePath, ossPath);
|
|
|
+// }
|
|
|
+// fYunFileService.uploadMulFiles(uploadMap);
|
|
|
+ fYunFileService.uploadFileByCommand(dataSource, "images/images" + sceneNum + "/");
|
|
|
|
|
|
ScenePro sceneProEntity = new ScenePro();
|
|
|
sceneProEntity.setDataSource(dataSource);
|