From 21e3c4adb7aa7d5a92fc844cb6141648c06f8f76 Mon Sep 17 00:00:00 2001 From: xuhy <3313886187@qq.com> Date: 星期二, 11 三月 2025 09:52:22 +0800 Subject: [PATCH] 咸宁二期用户端 --- ManagementOKTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/util/GaoDeMapUtil.java | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/ManagementOKTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/util/GaoDeMapUtil.java b/ManagementOKTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/util/GaoDeMapUtil.java index 9cc3a84..105a191 100644 --- a/ManagementOKTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/util/GaoDeMapUtil.java +++ b/ManagementOKTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/util/GaoDeMapUtil.java @@ -36,7 +36,7 @@ public JSONObject getLngAndLat(String address) { JSONObject positionObj = new JSONObject(); Map<String, Object> map = new HashMap<>(); - String url = "https://api.map.baidu.com/geocoding/v3/?address" + address + "&output=json&ak=" + key; + String url = "https://api.map.baidu.com/geocoding/v3/?address=" + address + "&output=json&ak=" + key; String forObject = restTemplate.getForObject(url, String.class); JSONObject jsonObject = JSON.parseObject(forObject); String status = jsonObject.getString("status"); -- Gitblit v1.7.1