From 27e4295df589ae24955a67988f4ca5dfe95e2c96 Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Fri, 6 Sep 2024 23:57:57 +0800 Subject: [PATCH 1/2] =?UTF-8?q?feat(ProductLists):=20=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E5=95=86=E5=93=81=E5=88=97=E8=A1=A8=E6=8E=92=E5=BA=8F=E8=A7=84?= =?UTF-8?q?=E5=88=99=EF=BC=8C=E5=A2=9E=E5=8A=A0'sort'=E5=8F=82=E6=95=B0?= =?UTF-8?q?=EF=BC=8C=E4=BC=98=E5=8C=96=E5=95=86=E5=93=81=E6=8E=92=E5=BA=8F?= =?UTF-8?q?=E5=8A=9F=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 3c2bd5d0..9f98a14e 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']; + return ['price' => 'asc', 'id' => 'desc','sort'=>'desc']; } /** 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 2/2] =?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']; } /**