新增地址补全接口

This commit is contained in:
Jian Shen
2022-03-11 09:37:43 +08:00
parent fbd6971e23
commit 1b71354b53
@@ -1847,7 +1847,7 @@ public class AddressController {
* @param model * @param model
* @return * @return
*/ */
public Object structureForTestAction(AddesssMatchModel model) { public Object structureAndCompleteAction(AddesssMatchModel model) {
RestfulModelAndView mav = new RestfulModelAndView(); RestfulModelAndView mav = new RestfulModelAndView();
if (StringUtils.isBlank(model.getAddress())) { if (StringUtils.isBlank(model.getAddress())) {
@@ -1863,10 +1863,10 @@ public class AddressController {
// 地址验证无效也输出标准化结果 // 地址验证无效也输出标准化结果
params.put("flag", "true"); params.put("flag", "true");
try{ try{
json = request.getJsonContent("http://192.168.0.100:32080/FangJiaAddressService/structureForTest", params, "UTF-8"); json = request.getJsonContent("http://192.168.0.100:32080/FangJiaAddressService/structureAndComplete", params, "UTF-8");
} catch(Exception e){ } catch(Exception e){
try { try {
json = request.getJsonContent("http://192.168.0.100:32080/FangJiaAddressService/structureForTest", params, "UTF-8"); json = request.getJsonContent("http://192.168.0.100:32080/FangJiaAddressService/structureAndComplete", params, "UTF-8");
} catch(Exception ex){ } catch(Exception ex){
ex.printStackTrace(); ex.printStackTrace();
} }