cqp hai 2 meses
pai
achega
2dbeb45617
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/Service/EmployeeService.php

+ 1 - 1
app/Service/EmployeeService.php

@@ -144,7 +144,7 @@ class EmployeeService extends Service
                     'employee_id' => $model->id,
                     'employee_id' => $model->id,
                     'file' => $data['img_url'],
                     'file' => $data['img_url'],
                     'crt_time' => $time,
                     'crt_time' => $time,
-                    'top_depart_id' => $value['top_depart_id'],
+                    'top_depart_id' => $user['top_depart_id'],
                 ];
                 ];
                 EmployeeFile::insert($insert);
                 EmployeeFile::insert($insert);
                 $new[] = $data['img_url'];
                 $new[] = $data['img_url'];