Pre Merge pull request !340 from 码上秃Hello/N/A

This commit is contained in:
码上秃Hello 2023-08-15 03:25:02 +00:00 committed by Gitee
commit 4b936fe825
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 1 additions and 1 deletions

View File

@ -79,7 +79,7 @@ public class SysProfileController extends BaseController
{ {
return error("修改用户'" + user.getUserName() + "'失败,邮箱账号已存在"); return error("修改用户'" + user.getUserName() + "'失败,邮箱账号已存在");
} }
if (userService.updateUserProfile(user) > 0) if (userService.updateUserProfile(currentUser) > 0)
{ {
// 更新缓存用户信息 // 更新缓存用户信息
tokenService.setLoginUser(loginUser); tokenService.setLoginUser(loginUser);