|
|
@@ -255,10 +255,10 @@ class ProductController extends BaseController
|
|
|
}
|
|
|
$price = Yii::$app->request->post('price', '');
|
|
|
if (is_numeric($price) && $price > 0) {
|
|
|
- ProductClass::changePrice($productId, $price, ProductClass::PRICE_LABEL_CHANGE);
|
|
|
+ ProductClass::changePrice($productInfo, $price, ProductClass::PRICE_LABEL_CHANGE);
|
|
|
} else {
|
|
|
$price = bcadd($productInfo->cost, $productInfo->addPrice, 2);
|
|
|
- ProductClass::changePrice($productId, $price, ProductClass::PRICE_LABEL_AUTO);
|
|
|
+ ProductClass::changePrice($productInfo, $price, ProductClass::PRICE_LABEL_AUTO);
|
|
|
}
|
|
|
util::success(['price' => $price]);
|
|
|
}
|