diff --git a/projects/fangjia-core/pom.xml b/projects/fangjia-core/pom.xml
index 7255fbc50..b0e88dce4 100644
--- a/projects/fangjia-core/pom.xml
+++ b/projects/fangjia-core/pom.xml
@@ -33,12 +33,12 @@
org.slf4j
slf4j-api
- 1.6.1
+ 1.7.25
org.slf4j
slf4j-log4j12
- 1.6.1
+ 1.7.25
org.testng
diff --git a/projects/fangjia-open/pom.xml b/projects/fangjia-open/pom.xml
index 1bdc6962f..c618f10ba 100644
--- a/projects/fangjia-open/pom.xml
+++ b/projects/fangjia-open/pom.xml
@@ -170,5 +170,16 @@
0.1.0-SNAPSHOT
compile
+
+
+ org.slf4j
+ slf4j-api
+ 1.7.25
+
+
+ org.slf4j
+ jcl-over-slf4j
+ 1.7.25
+
diff --git a/projects/fangjia-script/src/main/groovy/com/fangjia/script/util/OpenApiClient.groovy b/projects/fangjia-script/src/main/groovy/com/fangjia/script/util/OpenApiClient.groovy
index b86580b36..6692fac71 100644
--- a/projects/fangjia-script/src/main/groovy/com/fangjia/script/util/OpenApiClient.groovy
+++ b/projects/fangjia-script/src/main/groovy/com/fangjia/script/util/OpenApiClient.groovy
@@ -479,7 +479,7 @@ public class OpenApiClient {
public static JSONObject addressStandard(String city, String address) {
- if (StringUtils.isBlank(city) || StringUtils.isBlank(address)) {
+ if (StringUtils.isBlank(address)) {
throw new IllegalArgumentException();
}
@@ -488,7 +488,7 @@ public class OpenApiClient {
params.put("city", city);
params.put("address", address);
params.put("token", TOKEN);
- String content = new HttpRequest().get("http://open.fangjia.com/address/standard", params, "utf-8")
+ String content = new HttpRequest().get("http://open.fangjia.com/addrSvc/structure", params, "utf-8")
JSONObject result = JSONObject.fromObject(content)
if (result.getInt("code") == 200) {
return result.getJSONObject("result");