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,