From 1a849d6f4f666d29a4892ab006b1f61393f5b4fa Mon Sep 17 00:00:00 2001 From: "WIN-C27C5MSVTPO\\16961" <1696136552@qq.com> Date: Sat, 13 Dec 2025 14:54:06 +0800 Subject: [PATCH] 1 --- app/common/service/PostService.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app/common/service/PostService.php b/app/common/service/PostService.php index 0aaf1ee..ce5664d 100644 --- a/app/common/service/PostService.php +++ b/app/common/service/PostService.php @@ -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,