|
@@ -168,14 +168,14 @@ class ProductClass extends BaseClass
|
|
|
}
|
|
}
|
|
|
$currentPriceField = $priceMap[$level] ?? 'price';
|
|
$currentPriceField = $priceMap[$level] ?? 'price';
|
|
|
$price = $product[$currentPriceField] ?? 0;
|
|
$price = $product[$currentPriceField] ?? 0;
|
|
|
-
|
|
|
|
|
//今日特价
|
|
//今日特价
|
|
|
$discountPrice = $product['discountPrice'] ?? 0;
|
|
$discountPrice = $product['discountPrice'] ?? 0;
|
|
|
if ($discountPrice > 0) {
|
|
if ($discountPrice > 0) {
|
|
|
- $currentAddPriceField = $addPriceMap[$level] ?? 'addPrice';
|
|
|
|
|
- $currentAddPrice = $product[$currentAddPriceField] ?? 0;
|
|
|
|
|
- if ($currentAddPriceField == 'skMore') {
|
|
|
|
|
|
|
+ if ($level == 0) {
|
|
|
|
|
+ $currentAddPrice = $product['skMore'] ?? 0;
|
|
|
$price = bcadd($discountPrice, $currentAddPrice, 2);
|
|
$price = bcadd($discountPrice, $currentAddPrice, 2);
|
|
|
|
|
+ } else {
|
|
|
|
|
+ $price = $discountPrice;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
return $price;
|
|
return $price;
|