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:
@ -34,7 +34,9 @@ class CouponController extends Controller
|
||||
abort(500, '创建失败');
|
||||
}
|
||||
} else {
|
||||
if (!Coupon::find($request->input('id'))->update($params)) {
|
||||
try {
|
||||
Coupon::find($request->input('id'))->update($params);
|
||||
} catch (\Exception $e) {
|
||||
abort(500, '保存失败');
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user