cqp 2 months ago
parent
commit
64701d5d98
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app/Service/QuantizationService.php

+ 2 - 2
app/Service/QuantizationService.php

@@ -528,6 +528,8 @@ class QuantizationService extends Service
             }
         }
 
+        $startTime = $data['start_time'] ?? 0;
+        $endTime   = $data['end_time'] ?? 0;
         if ($is_add) {
 
             if ($data['type'] == QuantizationCreate::type_one) {
@@ -542,8 +544,6 @@ 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,防止误匹配