소스 검색

增加杭申线和长湖申线调用救生衣接口

John 4 달 전
부모
커밋
83968f4972
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 5 1
      download-center-server/src/main/java/com/shanghaichengdi/downloadcenterserver/faced/PicDownloadFaced.java

+ 5 - 1
download-center-server/src/main/java/com/shanghaichengdi/downloadcenterserver/faced/PicDownloadFaced.java

@@ -84,12 +84,16 @@ public class PicDownloadFaced extends Thread {
     addQueue(id, imgUrlToSave);
 //    log.warn("======>   取出并移除首位元素:{}", JSONObject.toJSONString(UrlData.URL_IMG_TO_SAVE.poll()));
     Map<String, List<String>> polled = UrlData.URL_IMG_TO_SAVE.poll();
+    String id = new ArrayList<>(polled.keySet()).get(0);
+    if ("1".equals(bayonetId) || "2".equals(bayonetId)) {
+      AnalyseFaced.lifeJacketAnalyse(id, polled.get(id), bayonetId);
+    }else{
     if (!"8".equals(bayonetId)) {
-      String id = new ArrayList<>(polled.keySet()).get(0);
       AnalyseFaced.shipCoverAnalyse(id, polled.get(id).get(0), bayonetId);
       AnalyseFaced.lifeJacketAnalyse(id, polled.get(id), bayonetId);
       if (!"14".equals(bayonetId)) {
         AnalyseFaced.boatFlagAnalyse(id, polled.get(id), bayonetId);
+        }
       }
     }
   }