shish пре 4 година
родитељ
комит
570367caa1
1 измењених фајлова са 6 додато и 0 уклоњено
  1. 6 0
      biz-hd/order/services/OrderService.php

+ 6 - 0
biz-hd/order/services/OrderService.php

@@ -223,6 +223,12 @@ class OrderService extends BaseService
             $discountAmount = bcsub($totalPrice, $modifyPrice, 2);
             $data['discountAmount'] = $discountAmount;
         }
+        //七夕节前后上线时下面这段要删除!!
+        if ($modifyPrice > $totalPrice) {
+            if (isset($data['labourCost']) == false) {
+                $data['labourCost'] = bcsub($modifyPrice, $totalPrice, 2);
+            }
+        }
 
         //保存组合
         $groupName = $data['groupName'] ?? '';