This commit is contained in:
2023-11-23 14:42:02 +08:00
parent 16cbf92332
commit fcb789a255
@@ -372,10 +372,15 @@ public class AddressMatchProxyServiceImpl extends AbstractHttpApiService impleme
for (int i = 0; i < 3; i++) {
if (mapResult == null) {
matchResult.addDebugLog("格式化地址调百度重试开始");
mapResult = this.searchByBaiDu(city, formatAddress.toString());
LOGGER.warn("matchResult百度搜索测试1:", matchResult.toString());
LOGGER.warn("mapResult百度搜索测试2:", mapResult);
matchResult.addDebugLog("格式化地址调百度结果:" + mapResult != null ? mapResult.toString() : "");
mapResult = this.searchByBaiDu(city, formatAddress);
if(null != mapResult){
matchResult.addDebugLog("格式化地址调百度结果:" + mapResult.toString());
LOGGER.warn("百度搜索无结果 "+mapResult.toString()+"!");
}else{
matchResult.addDebugLog("格式化地址调百度结果:");
LOGGER.warn("百度搜索无结果");
}
} else {
break;
}