|
|
@@ -515,15 +515,8 @@ class ProductClass extends BaseClass
|
|
|
$price = floatval($v['discountPrice']);
|
|
|
}
|
|
|
if ($level == 2) {
|
|
|
- $hjAddPrice = $v['hjAddPrice'] ?? 0;
|
|
|
- $addPrice = $v['addPrice'] ?? 0;
|
|
|
- $diff = bcsub($addPrice, $hjAddPrice, 2);
|
|
|
- if ($diff > 0 && $v['discountPrice'] > $diff) {
|
|
|
- $price = bcsub($v['discountPrice'], $diff, 2);
|
|
|
- $price = floatval($price);
|
|
|
- } else {
|
|
|
- $price = $v['discountPrice'];
|
|
|
- }
|
|
|
+ $hjDiscountPrice = $v['hjDiscountPrice'] ?? 0;
|
|
|
+ $price = $hjDiscountPrice;
|
|
|
}
|
|
|
}
|
|
|
|