no message

This commit is contained in:
cb 2025-07-02 16:17:24 +08:00
parent 5fe9d79a94
commit 8870875647
2 changed files with 3 additions and 3 deletions

View File

@ -241,7 +241,7 @@ public class GoodsController extends BaseController {
one.setParGoodsCategoryId(parGoodsCategory.getGoodsCategoryId());
one.setParGoodsCategoryName(parGoodsCategory.getGoodsCategoryName());
}
logger.debug("验证坐标是否合理: {}", LocationUtils.isValidCoordinate(userLatitude, userLongitude));
// 计算距离逻辑
if (LocationUtils.isValidCoordinate(userLatitude, userLongitude) && one.getShopId() != null) {
try {

View File

@ -46,8 +46,8 @@ public class BaiduController extends BaseController {
}
try {
double longitude = Double.parseDouble(coordinates[0]); // 经度
double latitude = Double.parseDouble(coordinates[1]); // 纬度
double longitude = Double.parseDouble(coordinates[1]); // 经度
double latitude = Double.parseDouble(coordinates[0]); // 纬度
// 将经纬度添加到返回结果中
json.put("longitude", longitude);