Browse Source

修改天气接口返回参数

wangpx 1 year ago
parent
commit
3d17018672
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/main/java/cn/com/oa/controller/CommonController.java

+ 1 - 1
src/main/java/cn/com/oa/controller/CommonController.java

@@ -19,7 +19,7 @@ public class CommonController {
 
     @GetMapping("/weather")
     public AjaxResult getWeather() {
-        HttpResponse response = HttpRequest.get("https://weather.visualcrossing.com/VisualCrossingWebServices/rest/services/timeline/25%2C119?unitGroup=metric&elements=datetime%2Ctemp%2Cpreciptype&include=current&key=PA6TZ5RK5NS48644CHCKX6FGK&contentType=json").execute();
+        HttpResponse response = HttpRequest.get("https://weather.visualcrossing.com/VisualCrossingWebServices/rest/services/timeline/25.9645%2C119.2197?unitGroup=metric&elements=datetime%2Ctemp%2Cpreciptype&include=hours&key=PA6TZ5RK5NS48644CHCKX6FGK&contentType=json").execute();
         return AjaxResult.successData(200, response.body()).put("msg","获取成功");
     }
 }