Browse Source

add offline queue5

xiewj 3 months ago
parent
commit
616fb95edd

+ 3 - 3
720yun_fd_consumer/src/main/java/com/gis/listener/container/WorkOfflineListener.java

@@ -180,14 +180,14 @@ public class WorkOfflineListener implements ChannelAwareMessageListener {
                             if (FileUtil.exist(zipPath)) {
                             if (FileUtil.exist(zipPath)) {
                                 String cmd = String.format(CmdConstant.UNZIP_MESH_ZIP, zipPath, param.getPath());
                                 String cmd = String.format(CmdConstant.UNZIP_MESH_ZIP, zipPath, param.getPath());
                                 CmdUtils.callLineSh(cmd);
                                 CmdUtils.callLineSh(cmd);
-                                //下载icon
-                                log.info("下载icon:{}", workNavigationEntity.getIcon());
-                                HttpUtil.downloadFileFromUrl(workNavigationEntity.getIcon(),basePath + File.separator );
                             }else {
                             }else {
                                 log.info("mesh离线包不存在,{}---{}", workNavigationEntity.getSceneCode(),zipPath);
                                 log.info("mesh离线包不存在,{}---{}", workNavigationEntity.getSceneCode(),zipPath);
                             }
                             }
                             log.info("整合mesh场景解压完成");
                             log.info("整合mesh场景解压完成");
                         }
                         }
+                        //下载icon
+                        log.info("下载icon:{}", workNavigationEntity.getIcon());
+                        HttpUtil.downloadFileFromUrl(workNavigationEntity.getIcon(),basePath + File.separator );
                     }
                     }
 
 
                     currentProgress += progressIncrement;
                     currentProgress += progressIncrement;