mirror of
https://github.com/v2board/v2board.git
synced 2025-06-12 20:47:56 +08:00
fix elq update try catch
This commit is contained in:
@ -132,7 +132,9 @@ class UserController extends Controller
|
||||
if (!$user) {
|
||||
abort(500, '该用户不存在');
|
||||
}
|
||||
if (!$user->update($updateData)) {
|
||||
try {
|
||||
$user->update($updateData);
|
||||
} catch (\Exception $e) {
|
||||
abort(500, '保存失败');
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user