From 51194e5ed2c33d6d3db3a1e32603274772a6c63f Mon Sep 17 00:00:00 2001 From: luofei <604446095@qq.com> Date: Tue, 13 Jun 2023 11:00:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=BA=97=E9=93=BA=E4=BA=91?= =?UTF-8?q?=E5=95=86=E5=93=81=E5=88=97=E8=A1=A8=E7=9A=84=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/common/repositories/store/product/SpuRepository.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/common/repositories/store/product/SpuRepository.php b/app/common/repositories/store/product/SpuRepository.php index 6c8ca4a6..e08885d9 100644 --- a/app/common/repositories/store/product/SpuRepository.php +++ b/app/common/repositories/store/product/SpuRepository.php @@ -142,8 +142,7 @@ class SpuRepository extends BaseRepository app()->make(UserVisitRepository::class)->searchProduct($userInfo ? $userInfo['uid'] : 0, $where['keyword'], (int)($where['mer_id'] ?? 0)); } } - $where['spu_status'] = 1; - $where['mer_status'] = 1; + $where = array_merge(Product::searchEnable(), $where); $query = $this->dao->search($where); $query->with([