root 5 years ago
parent
commit
91c4bedbad
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/Http/Controllers/Admin/NoticeController.php

+ 1 - 1
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([