From 7dd0e59f2f3d0d4cdecfed0bc905bb44827586ee Mon Sep 17 00:00:00 2001 From: Jian Shen Date: Mon, 5 Sep 2022 17:13:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E4=B8=BAv3=E7=89=88=E6=9C=AC=E8=BF=94?= =?UTF-8?q?=E5=9B=9Ecount?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../fangjia/script/temp/shenjian/util/GaoDeUtils.groovy | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/projects/fangjia-script/src/main/groovy/com/fangjia/script/temp/shenjian/util/GaoDeUtils.groovy b/projects/fangjia-script/src/main/groovy/com/fangjia/script/temp/shenjian/util/GaoDeUtils.groovy index 1ab50a6ec..28f35f1ee 100644 --- a/projects/fangjia-script/src/main/groovy/com/fangjia/script/temp/shenjian/util/GaoDeUtils.groovy +++ b/projects/fangjia-script/src/main/groovy/com/fangjia/script/temp/shenjian/util/GaoDeUtils.groovy @@ -146,11 +146,11 @@ class GaoDeUtils { while (result.size() < count) { params.page = "${page}".toString() page++ - params.key = this.getGaodeKey("v5/place/around") - JSONObject json = HttpRequestUtil.getJsonContent("http://restapi.amap.com/v5/place/around", params); + params.key = this.getGaodeKey("v3/place/around") + JSONObject json = HttpRequestUtil.getJsonContent("http://restapi.amap.com/v3/place/around", params); if (json == null) { - params.key = this.getGaodeKey("v5/place/around") - json = HttpRequestUtil.getJsonContent("http://restapi.amap.com/v5/place/around", params); + params.key = this.getGaodeKey("v3/place/around") + json = HttpRequestUtil.getJsonContent("http://restapi.amap.com/v3/place/around", params); } if (json && json.info && json.info == "OK") { count = json.getString("count").toInteger()