更新 app/Admin/Services/BaseService.php
parent
f69368c411
commit
3b39557c1a
|
|
@ -94,7 +94,7 @@ class BaseService extends AdminService
|
||||||
$id = explode(',', $ids);
|
$id = explode(',', $ids);
|
||||||
$result = $this->preDelete($id);
|
$result = $this->preDelete($id);
|
||||||
if ($result !== true) {
|
if ($result !== true) {
|
||||||
$this->setError($validate);
|
$this->setError($result);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return $this->query()->whereIn($this->primaryKey(), $id)->delete();
|
return $this->query()->whereIn($this->primaryKey(), $id)->delete();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue