|
@@ -91,7 +91,7 @@ class DeviceService extends Service
|
|
|
'main_id' => $id,
|
|
'main_id' => $id,
|
|
|
'depart_id' => $value,
|
|
'depart_id' => $value,
|
|
|
'crt_time' => $time,
|
|
'crt_time' => $time,
|
|
|
- 'top_depart_id' => $value['top_depart_id'],
|
|
|
|
|
|
|
+ 'top_depart_id' => $data['top_depart_id'],
|
|
|
];
|
|
];
|
|
|
}
|
|
}
|
|
|
if(! empty($unit)) DeviceDepartDetails::insert($unit);
|
|
if(! empty($unit)) DeviceDepartDetails::insert($unit);
|