From e1cc42006891a0bc689d4c2ae8644a760ae3bb6b Mon Sep 17 00:00:00 2001 From: liu <1873441552@qq.com> Date: Tue, 19 Mar 2024 10:28:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= 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 0221f939..aa9eaac7 100644 --- a/app/common/repositories/store/product/ProductRepository.php +++ b/app/common/repositories/store/product/ProductRepository.php @@ -292,7 +292,7 @@ class ProductRepository extends BaseRepository if (count($data['attrValue']) > 1) throw new ValidateException('单规格商品属性错误'); } event('product.update.before', compact('id', 'data', 'merId', 'productType', 'conType')); - $spuData = $product = $this->setProduct($data); + $spuData = $product = $this->setProduct($data);//商品主表 $settleParams = $this->setAttrValue($data, $id, $productType, 1); $settleParams['cate'] = $this->setMerCate($data['mer_cate_id'], $id, $merId); $settleParams['attr'] = $this->setAttr($data['attr'], $id);