This commit is contained in:
2025-12-13 14:54:06 +08:00
parent 160e8416a2
commit 1a849d6f4f
+7 -1
View File
@@ -227,8 +227,14 @@ class PostService
content,
latitude,
longitude,
`like`,
shop_name,
favorite,
comment,
created_at,
updated_at,
price,
age,
(6371000 * ACOS(
COS(RADIANS(?)) * COS(RADIANS(latitude)) *
COS(RADIANS(longitude) - RADIANS(?)) +
@@ -240,7 +246,7 @@ class PostService
LIMIT 50";
// 根据场景设置半径
$radius = $scene === 'nearby' ? 20000 : 200000;
$radius = $scene === 'nearby' ? 2000000000 : 200000;
// $query = Db::select($sql, [
// 'lat' => $lat,