接口加城市

This commit is contained in:
2023-11-28 14:44:45 +08:00
parent fcb789a255
commit 858d81fdf7
3 changed files with 8 additions and 3 deletions
@@ -1169,7 +1169,7 @@ public class DistrictController {
}
public Object addrFacilitysAction(DistrictSearchModel model, @Param(name = "address") String address) throws Exception{
public Object addrFacilitysAction(DistrictSearchModel model, @Param(name = "city") String city, @Param(name = "address") String address) throws Exception{
RestfulModelAndView mav = new RestfulModelAndView();
mav.setViewType("rest");
if (StringUtils.isBlank(address)) {
@@ -1181,6 +1181,7 @@ public class DistrictController {
HttpRequest request = new HttpRequest();
JSONObject json = null;
Map<String, String> params = new HashMap<String, String>();
params.put("city", city);
params.put("address", address);
params.put("category", "property");
//新匹配接口