From 6cc06f735758e8ecf26960b3946d4c972207d439 Mon Sep 17 00:00:00 2001 From: wangxiaowei Date: Wed, 23 Oct 2024 09:33:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=BA=97=E9=93=BA=E8=A1=97?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E6=8E=92=E5=BA=8F=E4=B8=BA=E8=B7=9D=E7=A6=BB?= =?UTF-8?q?ASC=E6=8E=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/logic/LocalStoreLogic.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/logic/LocalStoreLogic.php b/app/api/logic/LocalStoreLogic.php index fc39803a..ae13c85b 100644 --- a/app/api/logic/LocalStoreLogic.php +++ b/app/api/logic/LocalStoreLogic.php @@ -202,7 +202,7 @@ class LocalStoreLogic extends Logic $where[] = ['shopName', 'like', '%' . $data['keyword'] . '%']; } - $order = ['lstore_id' => 'desc']; + $order = ['distance' => 'asc']; // 经纬度排序 if (isset($data['distance_sort'])) { $order = ['distance' => $data['distance_sort']];