From c5d3199e31d73720d38b531cbe6b31d9f4083b0f Mon Sep 17 00:00:00 2001 From: weiz <736250432@qq.com> Date: Tue, 7 May 2024 09:44:21 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E5=95=86=E5=93=81=E6=8C=89?= =?UTF-8?q?=E7=BB=BC=E5=90=88=E9=94=80=E9=87=8F=E4=BB=B7=E6=A0=BC=E6=8E=92?= =?UTF-8?q?=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/lists/goods/GoodsLists.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/api/lists/goods/GoodsLists.php b/app/api/lists/goods/GoodsLists.php index 5bd6ab3..dc62873 100644 --- a/app/api/lists/goods/GoodsLists.php +++ b/app/api/lists/goods/GoodsLists.php @@ -86,9 +86,9 @@ class GoodsLists extends BaseAdminDataLists implements ListsSearchInterface $order['sell'] = 'desc'; }elseif ($order_param=='sales') { $order['sales'] = 'desc'; - }else{ - $order['id'] = 'desc'; } + }else{ + $order['id'] = 'desc'; } return Goods::where($this->searchWhere)->where($where) ->field(['id', 'name','brand','class','unit', 'sell', 'code','imgs','sales'])