shish 3 лет назад
Родитель
Сommit
c822be775c
1 измененных файлов с 7 добавлено и 0 удалено
  1. 7 0
      biz-mall/order/services/OrderService.php

+ 7 - 0
biz-mall/order/services/OrderService.php

@@ -134,6 +134,13 @@ class OrderService extends BaseService
                 $ratio = $itemInfo[$currentId]['ratio'] ?? 20;
                 $currentMainId = $itemInfo[$currentId]['mainId'] ?? 0;
                 $currentPrice = $itemInfo[$currentId]['skPrice'] ?? 0;
+                //折扣价
+                $discountPrice = $itemInfo[$currentId]['discountPrice'] ?? 0;
+                if ($discountPrice > 0) {
+                    $currentAddPrice = $itemInfo[$currentId]['skMore'] ?? 0;
+                    $currentPrice = bcadd($discountPrice, $currentAddPrice, 2);
+                }
+
                 $currentWeight = $itemInfo[$currentId]['weight'] ?? 0;
                 if ($currentMainId != $mainId) {
                     util::fail('不是您的花材' . $mainId . ' ' . $currentMainId);