From 20cc9b22e1cdb93d081c6596ec762e9f928e208a Mon Sep 17 00:00:00 2001
From: lisy <linlangsur163@163.com>
Date: 星期三, 05 七月 2023 11:28:25 +0800
Subject: [PATCH] 修复模块中的地址

---
 cloud-server-other/src/main/java/com/dsh/other/controller/StoreController.java |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/cloud-server-other/src/main/java/com/dsh/other/controller/StoreController.java b/cloud-server-other/src/main/java/com/dsh/other/controller/StoreController.java
index 3ab7122..96e7621 100644
--- a/cloud-server-other/src/main/java/com/dsh/other/controller/StoreController.java
+++ b/cloud-server-other/src/main/java/com/dsh/other/controller/StoreController.java
@@ -45,7 +45,7 @@
     }
 
     @PostMapping("/base/protocol/storeDetail/nearbyStore")
-    public List<StoreInfo> getAllNearbyStoreList(@RequestBody String longitude,@RequestBody String latitude){
+    public List<StoreInfo> getAllNearbyStoreList(@RequestParam("longitude") String longitude, @RequestParam("latitude") String latitude){
         String current = longitude+","+latitude;
         List<StoreInfo> storeInfos = new ArrayList<>();
         String cityCode = "";
@@ -85,7 +85,7 @@
 
 
     @PostMapping("/base/protocol/storeDetail/storeOfLonLat")
-    public List<StoreLonLatList> getAllStoreLonLats(@RequestBody String longitude, @RequestBody String latitude){
+    public List<StoreLonLatList> getAllStoreLonLats(@RequestParam("longitude") String longitude, @RequestParam("latitude") String latitude){
         List<StoreLonLatList> storeInfos = new ArrayList<>();
         try {
             Map<String, String> geocode = gdMapGeocodingUtil.geocode(longitude, latitude);

--
Gitblit v1.7.1