From e7d94907f89155611897053deed7a439834dece2 Mon Sep 17 00:00:00 2001 From: luofei <604446095@qq.com> Date: Thu, 6 Jul 2023 10:38:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=95=86=E5=93=81=E5=88=97=E8=A1=A8=E8=BF=94?= =?UTF-8?q?=E5=9B=9E=E8=A7=84=E6=A0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/common/repositories/store/product/ProductRepository.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/common/repositories/store/product/ProductRepository.php b/app/common/repositories/store/product/ProductRepository.php index c41f002a..df860e75 100644 --- a/app/common/repositories/store/product/ProductRepository.php +++ b/app/common/repositories/store/product/ProductRepository.php @@ -871,7 +871,7 @@ class ProductRepository extends BaseRepository */ public function getList(?int $merId, array $where, int $page, int $limit) { - $query = $this->dao->search($merId, $where)->with(['merCateId.category', 'storeCategory', 'brand']); + $query = $this->dao->search($merId, $where)->with(['merCateId.category', 'storeCategory', 'brand', 'attrValue']); $count = $query->count(); $data = $query->page($page, $limit)->setOption('field', [])->field($this->filed)->select();