浏览代码

场景下载报错信息打印

dengsixing 3 年之前
父节点
当前提交
a3337da1ef

+ 8 - 2
4dkankan-center-scene-download/src/main/java/com/fdkankan/download/service/impl/SceneDownloadHandlerServiceImpl.java

@@ -271,8 +271,14 @@ public class SceneDownloadHandlerServiceImpl {
             Callable<Boolean> call = new Callable() {
             Callable<Boolean> call = new Callable() {
                 @Override
                 @Override
                 public Boolean call() throws Exception {
                 public Boolean call() throws Exception {
-                    zipOssFilesHandler(out, num, count, total, resolution,
-                        imagesVersion, cacheKeys,filePath, imageNumPath);
+                    try {
+                        zipOssFilesHandler(out, num, count, total, resolution,
+                            imagesVersion, cacheKeys,filePath, imageNumPath);
+                    }catch (Exception e){
+                        log.error("下载失败", e);
+                        return false;
+                    }
+
                     return true;
                     return true;
                 }
                 }
             };
             };