Explorar el Código

临时兼容包装费

shish hace 4 años
padre
commit
570367caa1
Se han modificado 1 ficheros con 6 adiciones y 0 borrados
  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'] ?? '';