修改店铺云商品列表的错误

This commit is contained in:
luofei 2023-06-13 11:00:51 +08:00
parent ce49e1c2a4
commit 51194e5ed2

View File

@ -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([