|
@@ -179,9 +179,8 @@ public class BuildScenePreServiceImpl implements IBuildScenePreService {
|
|
|
String videosViewPath = String.format(UploadFilePath.VIDEOS_VIEW_PATH, num);
|
|
|
|
|
|
Map<String, String> newMap = new HashMap<>();
|
|
|
- map.entrySet().parallelStream().forEach(entry -> {
|
|
|
- String key = entry.getKey();
|
|
|
- String value = entry.getValue();
|
|
|
+ for (String key : newMap.keySet()) {
|
|
|
+ String value = newMap.get(key);
|
|
|
if(value.contains(dataPath)){
|
|
|
newMap.put(key, value.replace(dataPath, dataViewPath));
|
|
|
}
|
|
@@ -191,7 +190,20 @@ public class BuildScenePreServiceImpl implements IBuildScenePreService {
|
|
|
if(value.contains(videoPath)){
|
|
|
newMap.put(key, value.replace(videoPath, videosViewPath));
|
|
|
}
|
|
|
- });
|
|
|
+ }
|
|
|
+// map.entrySet().parallelStream().forEach(entry -> {
|
|
|
+// String key = entry.getKey();
|
|
|
+// String value = entry.getValue();
|
|
|
+// if(value.contains(dataPath)){
|
|
|
+// newMap.put(key, value.replace(dataPath, dataViewPath));
|
|
|
+// }
|
|
|
+// if(value.contains(imagePath)){
|
|
|
+// newMap.put(key, value.replace(imagePath, imgViewPath));
|
|
|
+// }
|
|
|
+// if(value.contains(videoPath)){
|
|
|
+// newMap.put(key, value.replace(videoPath, videosViewPath));
|
|
|
+// }
|
|
|
+// });
|
|
|
return newMap;
|
|
|
}
|
|
|
|