mirror of
https://github.com/v2board/v2board.git
synced 2025-06-14 21:57:50 +08:00
fix elq update try catch
This commit is contained in:
@ -79,7 +79,10 @@ class UserController extends Controller
|
||||
}
|
||||
$params['group_id'] = $plan->group_id;
|
||||
}
|
||||
if (!$user->update($params)) {
|
||||
|
||||
try {
|
||||
$user->update($params);
|
||||
} catch (\Exception $e) {
|
||||
abort(500, '保存失败');
|
||||
}
|
||||
return response([
|
||||
|
Reference in New Issue
Block a user