...
This commit is contained in:
@@ -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 )
|
||||
{
|
||||
|
Reference in New Issue
Block a user