Merge branch 'open_gj' into 'master'

新增地址补全接口

See merge request !274
This commit is contained in:
2022-03-13 10:21:00 +08:00
@@ -1847,7 +1847,7 @@ public class AddressController {
* @param model
* @return
*/
public Object structureForTestAction(AddesssMatchModel model) {
public Object structureAndCompleteAction(AddesssMatchModel model) {
RestfulModelAndView mav = new RestfulModelAndView();
if (StringUtils.isBlank(model.getAddress())) {
@@ -1863,10 +1863,10 @@ public class AddressController {
// 地址验证无效也输出标准化结果
params.put("flag", "true");
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){
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){
ex.printStackTrace();
}