|
|
|
@ -79,6 +79,7 @@ class VisitController extends CommonController
|
|
|
|
});
|
|
|
|
});
|
|
|
|
})->orderBy($all['sort_name'] ?? 'id', $all['sort_type'] ?? 'desc');
|
|
|
|
})->orderBy($all['sort_name'] ?? 'id', $all['sort_type'] ?? 'desc');
|
|
|
|
if (isset($all['is_export']) && !empty($all['is_export'])) {
|
|
|
|
if (isset($all['is_export']) && !empty($all['is_export'])) {
|
|
|
|
|
|
|
|
dd($list->limit(5000)->get()->toArray());
|
|
|
|
return (new FastExcel($list->limit(5000)->get()->toArray()))->download('访问记录' . date('YmdHis') . '.csv', function ($info) {
|
|
|
|
return (new FastExcel($list->limit(5000)->get()->toArray()))->download('访问记录' . date('YmdHis') . '.csv', function ($info) {
|
|
|
|
return [
|
|
|
|
return [
|
|
|
|
'姓名' => $info['name'],
|
|
|
|
'姓名' => $info['name'],
|
|
|
|
|