feat(ProductLists): 修改商品排序规则,调整'sort'优先级,优化商品排序功能

This commit is contained in:
mkm 2024-09-07 00:03:49 +08:00
parent 27e4295df5
commit e0713be0a0

View File

@ -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'];
}
/**