From 21e3c4adb7aa7d5a92fc844cb6141648c06f8f76 Mon Sep 17 00:00:00 2001 From: xuhy <3313886187@qq.com> Date: 星期二, 11 三月 2025 09:52:22 +0800 Subject: [PATCH] 咸宁二期用户端 --- DriverOKTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/util/GDMapGeocodingUtil.java | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/DriverOKTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/util/GDMapGeocodingUtil.java b/DriverOKTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/util/GDMapGeocodingUtil.java index d9bb141..3fec09b 100644 --- a/DriverOKTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/util/GDMapGeocodingUtil.java +++ b/DriverOKTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/util/GDMapGeocodingUtil.java @@ -80,7 +80,7 @@ public Map<String, Object> geocoding(String address) { 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