|
@@ -111,7 +111,7 @@ public class GetWeatherXmo {
|
|
|
for (String code : areaCodes) {
|
|
|
//只有甘肃爬全省
|
|
|
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());
|
|
|
//市
|
|
|
for (DistrictCodeDO d : shiList) {
|
|
@@ -135,9 +135,9 @@ public class GetWeatherXmo {
|
|
|
if (isApiQuotaExhausted) break; // 检查标志变量
|
|
|
isApiQuotaExhausted = analysis(xmoUrl, d.getCode(), d.getName(), conn); // 传递标志变量
|
|
|
if (isApiQuotaExhausted) break; // 检查标志变量
|
|
|
- }*/
|
|
|
+ }
|
|
|
} else if (code.equals("230000")) {
|
|
|
- /*if (isApiQuotaExhausted) break; // 检查标志变量
|
|
|
+ if (isApiQuotaExhausted) break; // 检查标志变量
|
|
|
List<DistrictCodeDO> shiList = districtCodeDOList.stream().filter(item -> item.getPid().toString().equals(code)).collect(Collectors.toList());
|
|
|
//市
|
|
|
for (DistrictCodeDO d : shiList) {
|
|
@@ -155,7 +155,7 @@ public class GetWeatherXmo {
|
|
|
isApiQuotaExhausted = analysis(xmoUrl, q.getCode(), q.getName(), conn); // 传递标志变量
|
|
|
if (isApiQuotaExhausted) break; // 检查标志变量
|
|
|
}
|
|
|
- }*/
|
|
|
+ }
|
|
|
} else {
|
|
|
List<DistrictCodeDO> shiList = districtCodeDOList.stream().filter(item -> item.getPid().toString().equals(code)).collect(Collectors.toList());
|
|
|
for (DistrictCodeDO d : shiList) {
|