fix elq update try catch

This commit is contained in:
Tokumeikoi
2020-03-17 14:28:47 +08:00
parent 7bb4852cca
commit 96f562a9e7
8 changed files with 33 additions and 12 deletions

View File

@ -29,7 +29,9 @@ class NoticeController extends Controller
abort(500, '保存失败');
}
} else {
if (!Notice::find($request->input('id'))->update($data)) {
try {
Notice::find($request->input('id'))->update($data);
} catch (\Exception $e) {
abort(500, '保存失败');
}
}