From cf918aa0dfd432466f5f1f8bb067d5b836ef343c Mon Sep 17 00:00:00 2001 From: Cui Zhi Feng <cuizf@fengyuntec.com> Date: 星期日, 20 十月 2024 20:31:44 +0800 Subject: [PATCH] 解析经纬度 null --- src/main/java/com/mzl/flower/web/customer/HomeCustomerController.java | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/main/java/com/mzl/flower/web/customer/HomeCustomerController.java b/src/main/java/com/mzl/flower/web/customer/HomeCustomerController.java index 5ec9662..156870a 100644 --- a/src/main/java/com/mzl/flower/web/customer/HomeCustomerController.java +++ b/src/main/java/com/mzl/flower/web/customer/HomeCustomerController.java @@ -51,7 +51,7 @@ String requestPath = "https://apis.map.qq.com/ws/geocoder/v1/?key=GSBBZ-CJA3U-NNDVH-GE65N-6FIF6-ZGBCU&get_poi=1&location="; String pp = URLEncoder.encode(location, "utf-8"); requestPath += pp; - JSONObject json = HttpUtil.doRequest(HttpMethod.GET.name(), requestPath, "json", new HashMap<>(), null, new HashMap<>(), new HashMap<>()); + JSONObject json = HttpUtil.doRequest(HttpMethod.GET.name(), requestPath, "json", new HashMap<>(), new HashMap<>(), new HashMap<>(), new HashMap<>()); return returnData(R.SUCCESS.getCode(), json); } } -- Gitblit v1.9.3