mirror of
https://github.com/v2board/v2board.git
synced 2025-10-30 00:41:53 +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