diff --git a/app/common/repositories/store/product/SpuRepository.php b/app/common/repositories/store/product/SpuRepository.php index f5da0559..40d88f1e 100644 --- a/app/common/repositories/store/product/SpuRepository.php +++ b/app/common/repositories/store/product/SpuRepository.php @@ -164,7 +164,7 @@ class SpuRepository extends BaseRepository return compact('count', 'list'); } - public function getApiCloudSearch($where, $page, $limit, $rand = false) + public function getApiCloudSearch($where, $page, $limit, $rand = true) { $where = array_merge(Product::searchEnable(), $where); if (!empty($where['keyword'])) {