|
|
|
@ -327,7 +327,7 @@ class VisitController extends CommonController
|
|
|
|
$list = $model->whereIn('idcard', $all['idcard'])->pluck('idcard');
|
|
|
|
$list = $model->whereIn('idcard', $all['idcard'])->pluck('idcard');
|
|
|
|
$diff = collect($all['idcard'])->diffAssoc($list);
|
|
|
|
$diff = collect($all['idcard'])->diffAssoc($list);
|
|
|
|
if($diff->isNotEmpty()){
|
|
|
|
if($diff->isNotEmpty()){
|
|
|
|
array_values($diff->toArray());
|
|
|
|
$diff = array_values($diff->toArray());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return $this->success($diff);
|
|
|
|
return $this->success($diff);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|