cqp 2 meses atrás
pai
commit
601d85c98f
1 arquivos alterados com 2 adições e 3 exclusões
  1. 2 3
      app/Service/QuantizationService.php

+ 2 - 3
app/Service/QuantizationService.php

@@ -528,9 +528,6 @@ class QuantizationService extends Service
             }
         }
 
-        $startTime = $data['start_time'];
-        $endTime   = $data['end_time'];
-
         if ($is_add) {
 
             if ($data['type'] == QuantizationCreate::type_one) {
@@ -545,6 +542,8 @@ class QuantizationService extends Service
                 }
 
             } else {
+                $startTime = $data['start_time'];
+                $endTime   = $data['end_time'];
                 // 合作量化:检查时间区间重叠
                 $bool = QuantizationCreate::where('customer_supply_id', $data['customer_supply_id'])
                     ->where('type', QuantizationCreate::type_two) // 建议限定 type,防止误匹配