|
@@ -101,7 +101,7 @@ public class GetWeatherXmo {
|
|
for (String code : areaCodes) {
|
|
for (String code : areaCodes) {
|
|
//只有甘肃爬全省
|
|
//只有甘肃爬全省
|
|
if (code.equals("620000")) {
|
|
if (code.equals("620000")) {
|
|
- /* if (isApiQuotaExhausted) break; // 检查标志变量
|
|
|
|
|
|
+ if (isApiQuotaExhausted) break; // 检查标志变量
|
|
List<DistrictCodeDO> shiList = districtCodeDOList.stream().filter(item -> item.getPid().toString().equals(code)).collect(Collectors.toList());
|
|
List<DistrictCodeDO> shiList = districtCodeDOList.stream().filter(item -> item.getPid().toString().equals(code)).collect(Collectors.toList());
|
|
//市
|
|
//市
|
|
for (DistrictCodeDO d : shiList) {
|
|
for (DistrictCodeDO d : shiList) {
|
|
@@ -119,7 +119,7 @@ public class GetWeatherXmo {
|
|
isApiQuotaExhausted = analysis(xmoUrl, q.getCode(), q.getName(), conn); // 传递标志变量
|
|
isApiQuotaExhausted = analysis(xmoUrl, q.getCode(), q.getName(), conn); // 传递标志变量
|
|
if (isApiQuotaExhausted) break; // 检查标志变量
|
|
if (isApiQuotaExhausted) break; // 检查标志变量
|
|
}
|
|
}
|
|
- }*/
|
|
|
|
|
|
+ }
|
|
} else if (code.equals("230000")) {
|
|
} else if (code.equals("230000")) {
|
|
//黑龙江 只爬哈尔滨,牡丹江市,鸡西市,七台河市,齐齐哈尔市,绥化市
|
|
//黑龙江 只爬哈尔滨,牡丹江市,鸡西市,七台河市,齐齐哈尔市,绥化市
|
|
List<DistrictCodeDO> shiList = districtCodeDOList.stream().filter(item -> item.getPid().toString().equals(code)).collect(Collectors.toList());
|
|
List<DistrictCodeDO> shiList = districtCodeDOList.stream().filter(item -> item.getPid().toString().equals(code)).collect(Collectors.toList());
|