Explorar el Código

全景图下载并行流改为串行流

dengsixing hace 3 años
padre
commit
0f443697e5

+ 2 - 1
4dkankan-center-scene/src/main/java/com/fdkankan/scene/service/impl/SceneEditInfoServiceImpl.java

@@ -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();