This commit is contained in:
JaguarJack 2020-09-04 10:09:26 +08:00
parent 8f73948223
commit c5fb6f9409
3 changed files with 5 additions and 2 deletions

View File

@ -86,7 +86,9 @@ class User extends CatchController
$this->user->attachRoles($request->param('roles'));
if ($request->param('jobs')) {
$this->user->attachJobs($request->param('jobs'));
}
return CatchResponse::success('', '添加成功');
}

View File

@ -30,6 +30,7 @@ class Attachments extends CatchModel
{
return $this->order('id', 'desc')
->catchSearch()
->catchOrder()
->paginate();
}

View File

@ -22,7 +22,7 @@ trait AttachmentsSearch
return $query->where('mime_type', $value);
}
public function searchDriver($query, $value, $data)
public function searchDriverAttr($query, $value, $data)
{
return $query->where('driver', $value);
}