cqpCow hai 10 meses
pai
achega
fc56a25455
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  1. 3 3
      app/Service/ScheduleService.php

+ 3 - 3
app/Service/ScheduleService.php

@@ -604,16 +604,16 @@ class ScheduleService extends Service
     }
 
     public function getSettingGetDetail2($data, $user){
-        if(empty($data['order'])) return [true, ""];
+        if(empty($data['order'])) return [true, []];
         $order_id = array_filter(explode(',', $data['order']));
-        if(empty($order_id)) return [true, ""];
+        if(empty($order_id)) return [true, []];
 
         $construction = Construction::where('del_time',0)
             ->where('state','>=',Construction::STATE_TWO)
             ->whereIn('id',$order_id)
             ->select('id','order_number','crt_id','start_time','end_time','state','product_introduction','vin_no')
             ->get()->toArray();
-        if(empty($construction)) return [true, ""];
+        if(empty($construction)) return [true, []];
         $emp = Employee::whereIn('id',array_unique(array_column($construction,'crt_id')))
             ->pluck('emp_name','id')
             ->toArray();