1
0

如果经纬度不变就不去调用地图api

This commit is contained in:
2025-08-01 16:27:17 +08:00
parent 6fb8e73535
commit 0ad100a7a5
2 changed files with 28 additions and 4 deletions

View File

@ -336,8 +336,8 @@ public class AppDeviceBizService {
String locationInfo = RedisUtils.getCacheObject(locationKey);
if(StringUtils.isNotBlank(locationInfo)){
JSONObject jsonObject = JSONObject.parseObject(locationInfo);
vo.setLongitude((String)jsonObject.get("longitude"));
vo.setLatitude((String)jsonObject.get("latitude"));
vo.setLongitude(jsonObject.get("longitude").toString());
vo.setLatitude(jsonObject.get("latitude").toString());
vo.setAddress((String)jsonObject.get("address"));
}