From 530c29604bb4a4cfc9f9a0777d45fddc7c389287 Mon Sep 17 00:00:00 2001 From: liu <1873441552@qq.com> Date: Tue, 19 Mar 2024 13:47:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=99=90=E5=88=B6?= 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, 1 insertion(+), 5 deletions(-) diff --git a/app/common/repositories/store/product/ProductRepository.php b/app/common/repositories/store/product/ProductRepository.php index c6382276..dd4a11df 100644 --- a/app/common/repositories/store/product/ProductRepository.php +++ b/app/common/repositories/store/product/ProductRepository.php @@ -327,11 +327,7 @@ class ProductRepository extends BaseRepository if(!empty($settleParams['attrValue'])){ $wholesalePrices = array_column($settleParams['attrValue'], 'wholesale_price'); $minWholesalePrice = min($wholesalePrices); - - if($product['wholesale_price'] > $minWholesalePrice){ - $product['wholesale_price'] =$minWholesalePrice; - } - + $product['wholesale_price'] =$minWholesalePrice; } return Db::transaction(function () use ($id, $data, $productType, $settleParams, $content, $product, $spuData, $merId) {