diff --git a/app/repository/SpuRepository.php b/app/repository/SpuRepository.php index 4ceed65..328df04 100755 --- a/app/repository/SpuRepository.php +++ b/app/repository/SpuRepository.php @@ -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);