소스 검색

修改天气

yang 3 년 전
부모
커밋
628c98e5d7
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      huimv-farm-environ/src/main/java/com/huimv/environ/eco/controller/WeatherController.java

+ 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.setLocation(farm.getLocation());
+        weatherResultEntity.setLocation(farm.getFrontLocation());
 
         weatherResultEntity.setAlarm( alarm.toString());
 
@@ -243,7 +243,6 @@ public class WeatherController {
         return new Result(ResultCode.SUCCESS, weatherResultEntity);
 
 
-
     }