limeng 1 год назад
Родитель
Сommit
0b598c2d6e

+ 3 - 4
ruoyi-admin/src/main/java/com/ruoyi/monitorInterface/inserctpests/service/impl/PlantDiseasesAndInsectPestsServiceImpl.java

@@ -38,13 +38,11 @@ public class PlantDiseasesAndInsectPestsServiceImpl implements PlantDiseasesAndI
 
     public AjaxResult plantDiseasesAndInsectPestsMessageReceiver(String deviceNumber) {
         if (FILE_URL.equals("")){
-            FILE_URL = configService.getKey("onest_file_url");
+            FILE_URL = configService.getKey("centerMonitorURL") + "centerMonitorFeign/upload";
         }
         if (INSECT_PESTS_URL.equals("")){
             INSECT_PESTS_URL = configService.getKey("insectPestsUrl");
         }
-        System.out.println(INSECT_PESTS_URL);
-        System.out.println(FILE_URL);
         secretKey = configService.getKey("insectToken");
         userName = configService.getKey("insectName");
         //先请求
@@ -56,6 +54,7 @@ public class PlantDiseasesAndInsectPestsServiceImpl implements PlantDiseasesAndI
                 .header("Content-Type", "application/json")
                 .execute().body();
         log.info("plantDiseasesAndInsectPestsMessageReceiver 收到数据 ==> {}", result);
+
         //后推送
         JSONObject object;
         String res;
@@ -69,7 +68,7 @@ public class PlantDiseasesAndInsectPestsServiceImpl implements PlantDiseasesAndI
             JSONObject img2 = img(taggingImgUrl);
             object.getJSONObject("data").put("taggingImgUrl", img2.getJSONObject("data").getString("url"));
 
-            System.out.println("--------------------------内网地址-----------------------------");
+            System.out.println("--------------------------图片-----------------------------");
             System.out.println("oldTaggingImgUrl:" + img.getJSONObject("data").getString("url"));
             System.out.println("taggingImgUrl:" + img2.getJSONObject("data").getString("url"));
             System.out.println("-------------------------------------------------------------");