修改限制

This commit is contained in:
liu 2024-03-19 13:47:22 +08:00
parent 372fe79cfd
commit 530c29604b

View File

@ -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) {