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