From 20113e24fa706fff85ce10981d341ec4bc22961a Mon Sep 17 00:00:00 2001 From: mashuai Date: Wed, 7 May 2025 15:59:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/bonus/sgzb/system/service/impl/SysUserServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sgzb-modules/sgzb-system/src/main/java/com/bonus/sgzb/system/service/impl/SysUserServiceImpl.java b/sgzb-modules/sgzb-system/src/main/java/com/bonus/sgzb/system/service/impl/SysUserServiceImpl.java index eb045e3a..ffec4559 100644 --- a/sgzb-modules/sgzb-system/src/main/java/com/bonus/sgzb/system/service/impl/SysUserServiceImpl.java +++ b/sgzb-modules/sgzb-system/src/main/java/com/bonus/sgzb/system/service/impl/SysUserServiceImpl.java @@ -626,7 +626,7 @@ public class SysUserServiceImpl implements ISysUserService { throw new ServiceException("新密码不能包含超过" + systemConfig.getPasswordConfig().getMaxConsecutiveChars() + "位连续字符!"); } // 根据用户id查询用户信息 - SysUser userInfo = userMapper.selectUserById(SecurityUtils.getUserId()); + SysUser userInfo = userMapper.selectUserById(user.getUserId()); boolean isNewPassword = SecurityUtils.matchesPassword(decrypt, userInfo.getPassword()); if (isNewPassword) { throw new ServiceException("新密码不能与旧密码相同!");