yang 3 anni fa
parent
commit
628c98e5d7

+ 1 - 2
huimv-farm-environ/src/main/java/com/huimv/environ/eco/controller/WeatherController.java

@@ -202,7 +202,7 @@ public class WeatherController {
 
 
         WeatherResultEntity weatherResultEntity = new WeatherResultEntity();
         WeatherResultEntity weatherResultEntity = new WeatherResultEntity();
 
 
-        weatherResultEntity.setLocation(farm.getLocation());
+        weatherResultEntity.setLocation(farm.getFrontLocation());
 
 
         weatherResultEntity.setAlarm( alarm.toString());
         weatherResultEntity.setAlarm( alarm.toString());
 
 
@@ -243,7 +243,6 @@ public class WeatherController {
         return new Result(ResultCode.SUCCESS, weatherResultEntity);
         return new Result(ResultCode.SUCCESS, weatherResultEntity);
 
 
 
 
-
     }
     }