From e0713be0a0e442dd8ff34891e2e73f09edfb4d56 Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Sat, 7 Sep 2024 00:03:49 +0800 Subject: [PATCH] =?UTF-8?q?feat(ProductLists):=20=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E5=95=86=E5=93=81=E6=8E=92=E5=BA=8F=E8=A7=84=E5=88=99=EF=BC=8C?= =?UTF-8?q?=E8=B0=83=E6=95=B4'sort'=E4=BC=98=E5=85=88=E7=BA=A7=EF=BC=8C?= =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=95=86=E5=93=81=E6=8E=92=E5=BA=8F=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/lists/product/ProductLists.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/lists/product/ProductLists.php b/app/api/lists/product/ProductLists.php index 9f98a14e..cf59126b 100644 --- a/app/api/lists/product/ProductLists.php +++ b/app/api/lists/product/ProductLists.php @@ -55,7 +55,7 @@ class ProductLists extends BaseApiDataLists implements ListsSearchInterface, Lis */ public function setDefaultOrder(): array { - return ['price' => 'asc', 'id' => 'desc','sort'=>'desc']; + return ['sort'=>'desc','price' => 'asc', 'id' => 'desc']; } /**