This commit is contained in:
weiz 2024-03-02 16:12:24 +08:00
parent 7430df889b
commit ea2ad715b6

View File

@ -86,8 +86,11 @@ class SupervisionMaterialEntryDetailController extends BaseAdminController
public function delete()
{
$params = (new SupervisionMaterialEntryDetailValidate())->post()->goCheck('delete');
SupervisionMaterialEntryDetailLogic::delete($params);
return $this->success('删除成功', [], 1, 1);
$result = SupervisionMaterialEntryDetailLogic::delete($params);
if (true === $result) {
return $this->success('删除成功', [], 1, 1);
}
return $this->fail(SupervisionMaterialEntryDetailLogic::getError());
}