Pre Merge pull request !480 from 小和/develop

pull/480/MERGE
小和 2025-01-03 03:02:39 +00:00 committed by Gitee
commit 49862d42ed
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 8 additions and 5 deletions

View File

@ -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();
} }