|
|
@@ -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","获取成功");
|
|
|
}
|
|
|
}
|