|
@@ -1011,13 +1011,14 @@ class ItemController extends BaseController
|
|
|
Yii::$app->params['ptStyle'] = dict::getDict('ptStyle', 'hd');
|
|
Yii::$app->params['ptStyle'] = dict::getDict('ptStyle', 'hd');
|
|
|
|
|
|
|
|
$prefix = imgUtil::getPrefix();
|
|
$prefix = imgUtil::getPrefix();
|
|
|
-
|
|
|
|
|
- $price = $item->skPrice ?? 0;
|
|
|
|
|
- if ($item->discountPrice > 0) {
|
|
|
|
|
- $skMore = $item->skMore ?? 0;
|
|
|
|
|
- $price = bcadd($item->discountPrice, $skMore, 2);
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
|
|
+ // 零售海报价格与商城散客价一致:走 getFinalPrice(有特价用 skDiscountPrice,否则 skPrice)
|
|
|
|
|
+ $product = is_object($item) ? $item->toArray() : (array)$item;
|
|
|
|
|
+ $price = ProductClass::getFinalPrice(
|
|
|
|
|
+ $product,
|
|
|
|
|
+ CustomClass::LEVEL_SK,
|
|
|
|
|
+ CustomClass::$levelPriceKeyMap,
|
|
|
|
|
+ []
|
|
|
|
|
+ );
|
|
|
$staff = $this->shopAdmin;
|
|
$staff = $this->shopAdmin;
|
|
|
$staffName = $staff->name ?? '';
|
|
$staffName = $staff->name ?? '';
|
|
|
|
|
|
|
@@ -1423,4 +1424,4 @@ class ItemController extends BaseController
|
|
|
util::complete('修改成功');
|
|
util::complete('修改成功');
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-}
|
|
|
|
|
|
|
+}
|