修改限制
This commit is contained in:
parent
372fe79cfd
commit
530c29604b
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user