Commit c5e4459b authored by RuoYi's avatar RuoYi
Browse files

优化代码

parent 8f67bf41
......@@ -73,7 +73,7 @@ public class SysProfileController extends BaseController
{
return error("修改用户'" + user.getUserName() + "'失败,邮箱账号已存在");
}
if (userService.updateUserProfile(user) > 0)
if (userService.updateUserProfile(currentUser) > 0)
{
// 更新缓存用户信息
tokenService.setLoginUser(loginUser);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment