|
@@ -1012,7 +1012,8 @@ public class SceneEditInfoServiceImpl extends ServiceImpl<ISceneEditInfoMapper,
|
|
|
//先下载到本地
|
|
|
List<String> keyList = uploadToOssUtil.listKeys(imgCachePath);
|
|
|
if (!StorageType.LOCAL.code().equals(this.type)) {// TODO: 2022/2/15 这里有可能有问题,可能还需要考虑本地部署的情况
|
|
|
- keyList.parallelStream().forEach(key->{
|
|
|
+// System.setProperty("java.util.concurrent.ForkJoinPool.common.parallelism", "8");
|
|
|
+ keyList.stream().forEach(key->{
|
|
|
String file = key.substring(key.lastIndexOf("/") + 1);
|
|
|
if(imageList.contains(file)){
|
|
|
String imageUrl = ossUrlPrefix + imgCachePath + file + "?t=" + System.currentTimeMillis();
|