|
|
@@ -299,11 +299,11 @@ class ItemController extends BaseController
|
|
|
|
|
|
$prefix = imgUtil::getPrefix();
|
|
|
|
|
|
- $price = $item->skPrice ?? 0;
|
|
|
- if ($item->discountPrice > 0) {
|
|
|
- $skMore = $item->skMore ?? 0;
|
|
|
- $price = bcadd($item->discountPrice, $skMore, 2);
|
|
|
- }
|
|
|
+ $level = 0;
|
|
|
+ $priceMap = \bizGhs\custom\classes\CustomClass::$levelPriceKeyMap;
|
|
|
+ $addPriceMap = \bizGhs\custom\classes\CustomClass::$levelAddPriceKeyMap;
|
|
|
+ $price = \bizGhs\product\classes\ProductClass::getFinalPrice($item, $level, $priceMap, $addPriceMap);
|
|
|
+
|
|
|
$newPrice = '¥' . floatval($price);
|
|
|
$priceBase64 = stringUtil::ossBase64($newPrice);
|
|
|
|