shish 4 anni fa
parent
commit
503d72bea5
1 ha cambiato i file con 2 aggiunte e 3 eliminazioni
  1. 2 3
      biz-hd/order/services/OrderService.php

+ 2 - 3
biz-hd/order/services/OrderService.php

@@ -215,9 +215,8 @@ class OrderService extends BaseService
                 ];
             }
         }
-
-        $sendCost = isset($data['sendCost']) && $data['sendCost'] > 0 ? $data['sendCost'] : 0;
-        $totalPrice = bcadd($goodsPrice, $sendCost, 2);
+        $data['sendCost'] = isset($data['sendCost']) && $data['sendCost'] > 0 ? $data['sendCost'] : 0;
+        $totalPrice = bcadd($goodsPrice, $data['sendCost'], 2);
         $modifyPrice = isset($data['modifyPrice']) && $data['modifyPrice'] > 0 ? $data['modifyPrice'] : 0;
         if ($modifyPrice > $totalPrice) {
             //人工资材包装费