|
@@ -122,7 +122,7 @@ class ProductController extends BaseController
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- //输出普通会员价,即花店价,默认显示的是花店价
|
|
|
|
|
|
|
+ //输出标准会员价,即花店价,默认显示的是花店价
|
|
|
$level = 1;
|
|
$level = 1;
|
|
|
|
|
|
|
|
$type = Yii::$app->request->get('type', '');
|
|
$type = Yii::$app->request->get('type', '');
|
|
@@ -379,7 +379,7 @@ class ProductController extends BaseController
|
|
|
$currentAddPrice = bcsub($val, $product->cost, 2);
|
|
$currentAddPrice = bcsub($val, $product->cost, 2);
|
|
|
|
|
|
|
|
$skDiff = bcsub($product->skAddPrice, $product->addPrice, 2);
|
|
$skDiff = bcsub($product->skAddPrice, $product->addPrice, 2);
|
|
|
- //散客价比普通会员价高,所以是相加
|
|
|
|
|
|
|
+ //大众会员价比标准会员价高,所以是相加
|
|
|
$newSkAddPrice = bcadd($currentAddPrice, $skDiff, 2);
|
|
$newSkAddPrice = bcadd($currentAddPrice, $skDiff, 2);
|
|
|
|
|
|
|
|
$hjDiff = bcsub($product->addPrice, $product->hjAddPrice, 2);
|
|
$hjDiff = bcsub($product->addPrice, $product->hjAddPrice, 2);
|