This commit is contained in:
root 2019-12-12 14:43:21 +08:00
parent cc9dd4a21e
commit 91c4bedbad

View File

@ -50,7 +50,7 @@ class NoticeController extends Controller
if (!$notice) { if (!$notice) {
abort(500, '公告不存在'); abort(500, '公告不存在');
} }
if ($notice->delete()) { if (!$notice->delete()) {
abort(500, '删除失败'); abort(500, '删除失败');
} }
return response([ return response([