mirror of https://gitee.com/karson/fastadmin.git
Pre Merge pull request !480 from 小和/develop
commit
49862d42ed
|
|
@ -93,12 +93,15 @@ class User extends Backend
|
|||
$this->error(__("Invalid parameters"));
|
||||
}
|
||||
$ids = $ids ? $ids : $this->request->post("ids");
|
||||
$row = $this->model->get($ids);
|
||||
$idArray = explode(',', $ids);
|
||||
foreach ($idArray as $id) {
|
||||
$row = $this->model->get($id);
|
||||
$this->modelValidate = true;
|
||||
if (!$row) {
|
||||
$this->error(__('No Results were found'));
|
||||
}
|
||||
Auth::instance()->delete($row['id']);
|
||||
}
|
||||
$this->success();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue