1
0
Fork 0

更新 app/Admin/Services/BaseService.php

panliang 2023-10-08 10:27:59 +08:00
parent f69368c411
commit 3b39557c1a
1 changed files with 1 additions and 1 deletions

View File

@ -94,7 +94,7 @@ class BaseService extends AdminService
$id = explode(',', $ids);
$result = $this->preDelete($id);
if ($result !== true) {
$this->setError($validate);
$this->setError($result);
return false;
}
return $this->query()->whereIn($this->primaryKey(), $id)->delete();