setter
parent
81d6fcf7a0
commit
1ede4f685b
|
@ -207,7 +207,7 @@ class SpuRepository extends Repository
|
|||
$fields = $params['fields'] ?? ['id', 'name', 'price', 'original_price', 'cover', 'activity_type'];
|
||||
|
||||
if (empty($order)) {
|
||||
$order = ['published_at' => 'desc'];
|
||||
$order = ['sort'=>"desc",'published_at' => 'desc'];
|
||||
}
|
||||
|
||||
$list = Spu::findList($searchMap, $fields, $page, $size, $callback, $order);
|
||||
|
|
Loading…
Reference in New Issue