mirror of
https://github.com/v2board/v2board.git
synced 2025-06-15 14:17:48 +08:00
fix elq update try catch
This commit is contained in:
@ -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, '保存失败');
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user