修改商品价格设置的错误
This commit is contained in:
parent
1417143eaf
commit
7d149aed99
@ -70,13 +70,13 @@ class StoreProductPriceLogic extends BaseLogic
|
||||
$params['price'] = bcmul($params['purchase'], $params['price_lv'], 2);
|
||||
}
|
||||
if ($find['cost_lv'] != $params['cost_lv']) {
|
||||
$params = self::updateProductPriceList2($find['product_id'], 'merchant_rate', $params['cost_lv'], $params, 'cost', $find['purchase']);
|
||||
$params = self::updateProductPriceList2($find['product_id'], 'merchant_rate', $params['cost_lv'], $params, 'cost', $params['purchase']);
|
||||
}
|
||||
if ($find['vip_lv'] != $params['vip_lv']) {
|
||||
$params = self::updateProductPriceList2($find['product_id'], 'vip_rate', $params['vip_lv'], $params, 'vip_price', $find['purchase']);
|
||||
$params = self::updateProductPriceList2($find['product_id'], 'vip_rate', $params['vip_lv'], $params, 'vip_price', $params['purchase']);
|
||||
}
|
||||
if ($find['price_lv'] != $params['price_lv']) {
|
||||
$params = self::updateProductPriceList2($find['product_id'], 'price_rate', $params['price_lv'], $params, 'price', $find['purchase']);
|
||||
$params = self::updateProductPriceList2($find['product_id'], 'price_rate', $params['price_lv'], $params, 'price', $params['purchase']);
|
||||
}
|
||||
$find->save([
|
||||
'status' => 1,
|
||||
|
Loading…
x
Reference in New Issue
Block a user