This commit is contained in:
root 2019-10-29 13:53:51 +08:00
parent 1836b78b99
commit c5b56bda00

View File

@ -38,7 +38,7 @@ class UserController extends Controller
if (!$user) {
abort(500, '用户不存在');
}
if (User::where('email', $update['email'])->first() && $user->email !== $updateData['email']) {
if (User::where('email', $updateData['email'])->first() && $user->email !== $updateData['email']) {
abort(500, '邮箱已被使用');
}
if ($updateData['password']) {