This commit is contained in:
2022-03-18 16:45:25 +08:00
parent d7c667cb40
commit bc913171ee
2 changed files with 3 additions and 23 deletions

View File

@@ -45,6 +45,7 @@ public class AppMain
String queryURL = config.getQueryUrl();
String userKey = config.getKey();
//遍历所有城市,查询是否有警报,有则推送。
for ( City city : cities )
{
try
@@ -53,6 +54,7 @@ public class AppMain
userKey,
city.getCityCode() );
warning = WeatherDisasterWarningGrabber.convertWeatherDisasterWarning( json );
}
catch ( IOException error )
{