From 91c4bedbad7c08f8467da3f0c8bf2cdd07dd7124 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 12 Dec 2019 14:43:21 +0800 Subject: [PATCH] update --- app/Http/Controllers/Admin/NoticeController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/Admin/NoticeController.php b/app/Http/Controllers/Admin/NoticeController.php index c7d6bc49..0d7a5c7b 100644 --- a/app/Http/Controllers/Admin/NoticeController.php +++ b/app/Http/Controllers/Admin/NoticeController.php @@ -50,7 +50,7 @@ class NoticeController extends Controller if (!$notice) { abort(500, '公告不存在'); } - if ($notice->delete()) { + if (!$notice->delete()) { abort(500, '删除失败'); } return response([