更新随机查询

This commit is contained in:
yaooo 2023-09-27 15:55:09 +08:00
parent 8937835bbc
commit 3f23292dc7

View File

@ -164,7 +164,7 @@ class SpuRepository extends BaseRepository
return compact('count', 'list'); 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); $where = array_merge(Product::searchEnable(), $where);
if (!empty($where['keyword'])) { if (!empty($where['keyword'])) {