diff --git a/projects/fangjia-script/src/main/groovy/com/fangjia/script/temp/shenjian/poi/SeaweedPoiDetail.groovy b/projects/fangjia-script/src/main/groovy/com/fangjia/script/temp/shenjian/poi/SeaweedPoiDetail.groovy index feffbc12b..b40ae6cbf 100644 --- a/projects/fangjia-script/src/main/groovy/com/fangjia/script/temp/shenjian/poi/SeaweedPoiDetail.groovy +++ b/projects/fangjia-script/src/main/groovy/com/fangjia/script/temp/shenjian/poi/SeaweedPoiDetail.groovy @@ -78,6 +78,9 @@ class SeaweedPoiDetail { String keywords = stringJoiner.toString() List pois = GaoDeUtils.searchPoi(city, keywords, region, typecodes) + if (CollectionUtils.isEmpty(pois)) { + pois = GaoDeUtils.searchPoi(city, name, region, typecodes) + } List detailList = new ArrayList<>() for (AmapPoi amapPoi : pois) {