shish 3 жил өмнө
parent
commit
c822be775c

+ 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);