no message
This commit is contained in:
parent
5fe9d79a94
commit
8870875647
|
|
@ -241,7 +241,7 @@ public class GoodsController extends BaseController {
|
||||||
one.setParGoodsCategoryId(parGoodsCategory.getGoodsCategoryId());
|
one.setParGoodsCategoryId(parGoodsCategory.getGoodsCategoryId());
|
||||||
one.setParGoodsCategoryName(parGoodsCategory.getGoodsCategoryName());
|
one.setParGoodsCategoryName(parGoodsCategory.getGoodsCategoryName());
|
||||||
}
|
}
|
||||||
|
logger.debug("验证坐标是否合理: {}", LocationUtils.isValidCoordinate(userLatitude, userLongitude));
|
||||||
// 计算距离逻辑
|
// 计算距离逻辑
|
||||||
if (LocationUtils.isValidCoordinate(userLatitude, userLongitude) && one.getShopId() != null) {
|
if (LocationUtils.isValidCoordinate(userLatitude, userLongitude) && one.getShopId() != null) {
|
||||||
try {
|
try {
|
||||||
|
|
|
||||||
|
|
@ -46,8 +46,8 @@ public class BaiduController extends BaseController {
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
double longitude = Double.parseDouble(coordinates[0]); // 经度
|
double longitude = Double.parseDouble(coordinates[1]); // 经度
|
||||||
double latitude = Double.parseDouble(coordinates[1]); // 纬度
|
double latitude = Double.parseDouble(coordinates[0]); // 纬度
|
||||||
|
|
||||||
// 将经纬度添加到返回结果中
|
// 将经纬度添加到返回结果中
|
||||||
json.put("longitude", longitude);
|
json.put("longitude", longitude);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue