Sfoglia il codice sorgente

根据code获取城市名称和编码

tags/V1.6.0
chengwang 2 anni fa
parent
commit
4886a57ee5
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. +1
    -1
      tuoheng-api/src/main/java/com/tuoheng/api/service/impl/CityServiceImpl.java

+ 1
- 1
tuoheng-api/src/main/java/com/tuoheng/api/service/impl/CityServiceImpl.java Vedi File

@@ -232,7 +232,7 @@ public class CityServiceImpl extends BaseServiceImpl<CityMapper, City> implement
}
CityInfoVo cityInfoVo = new CityInfoVo();
List<String> nameList = new ArrayList<>();
String cityCode = GaodeUtil.getGaodeCode(request.getLng(), request.getLng());
String cityCode = GaodeUtil.getGaodeCode(request.getLng(), request.getLat());
if (StringUtils.isNull(cityCode)) {
JsonResult.error("城市编码不存在");
}

Loading…
Annulla
Salva