From f9645c9ac5513c1b23d20854ed46294f217f3b87 Mon Sep 17 00:00:00 2001 From: shengchanzhe <179998674@qq.com> Date: Mon, 25 Dec 2023 13:56:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=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/ProductRepository.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/common/repositories/store/product/ProductRepository.php b/app/common/repositories/store/product/ProductRepository.php index ecbacbe2..fa29b0a6 100644 --- a/app/common/repositories/store/product/ProductRepository.php +++ b/app/common/repositories/store/product/ProductRepository.php @@ -2587,15 +2587,17 @@ class ProductRepository extends BaseRepository if ($data['product_id'] && $data['type']) { switch ($data['type']) { case 'five': - $data['five'] = 5; + $data['type'] = 5; break; case 'two': $data['type'] = 6; break; case 'three': - $data['mer_id'] = 7; + $data['type'] = 7; + break; case 'seven': $data['type'] = 8; + break; } $store_product=Db::name('store_product')->where('product_id',$data['product_id'])->find(); $datas = [