44323
2023-10-27 820724a76b4db9ea0eeb14049473ad56ebfb6d45
cloud-server-competition/src/main/java/com/dsh/competition/service/impl/CompetitionServiceImpl.java
@@ -125,7 +125,18 @@
                HashMap<String, Object> map = new HashMap<>();
                Store store = storeClient.queryStoreById(Integer.valueOf(s));
                map.put("name",store.getName());
                map.put("address",store.getAddress());
                String str = store.getAddress();
                str = str.substring(str.indexOf("省") + 1);
                // 去掉第一个“市”及之前的字符串
                str = str.substring(str.indexOf("市") + 1);
                // 去掉第一个“区”及之前的字符串
                str = str.substring(str.indexOf("区") + 1);
                map.put("address",str);
                map.put("storeLon",store.getLon());
                map.put("storeLat",store.getLat());
                map.put("storeCoverDrawing",store.getCoverDrawing());