This commit is contained in:
root 2019-12-12 14:20:47 +08:00
parent a78f6178bd
commit 6ccd8e583f

View File

@ -21,8 +21,11 @@ class NoticeController extends Controller
'title',
'content'
]);
if (!Notice::create($data)) {
abort(500, '保存失败');
}
return response([
'data' => Notice::create($data)
'data' => true
]);
}
}