+9
-4
@@ -372,10 +372,15 @@ public class AddressMatchProxyServiceImpl extends AbstractHttpApiService impleme
|
|||||||
for (int i = 0; i < 3; i++) {
|
for (int i = 0; i < 3; i++) {
|
||||||
if (mapResult == null) {
|
if (mapResult == null) {
|
||||||
matchResult.addDebugLog("格式化地址调百度重试开始");
|
matchResult.addDebugLog("格式化地址调百度重试开始");
|
||||||
mapResult = this.searchByBaiDu(city, formatAddress.toString());
|
mapResult = this.searchByBaiDu(city, formatAddress);
|
||||||
LOGGER.warn("matchResult百度搜索测试1:", matchResult.toString());
|
|
||||||
LOGGER.warn("mapResult百度搜索测试2:", mapResult);
|
if(null != mapResult){
|
||||||
matchResult.addDebugLog("格式化地址调百度结果:" + mapResult != null ? mapResult.toString() : "");
|
matchResult.addDebugLog("格式化地址调百度结果:" + mapResult.toString());
|
||||||
|
LOGGER.warn("百度搜索无结果 "+mapResult.toString()+"!");
|
||||||
|
}else{
|
||||||
|
matchResult.addDebugLog("格式化地址调百度结果:");
|
||||||
|
LOGGER.warn("百度搜索无结果");
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user