头像修改

This commit is contained in:
xiaopeng
2024-07-28 19:32:15 +08:00
parent 86a6434832
commit 6542ac8a7e

View File

@@ -91,6 +91,7 @@ public class BaseSysUserServiceImpl extends BaseServiceImpl<BaseSysUserMapper, B
BaseSysUserEntity userEntity = getById(userId); BaseSysUserEntity userEntity = getById(userId);
CoolPreconditions.checkEmpty(userEntity, "用户不存在"); CoolPreconditions.checkEmpty(userEntity, "用户不存在");
userEntity.setNickName(body.getStr("nickName")); userEntity.setNickName(body.getStr("nickName"));
userEntity.setHeadImg(body.getStr("headImg"));
// 修改密码 // 修改密码
if (StrUtil.isNotEmpty(body.getStr("password"))) { if (StrUtil.isNotEmpty(body.getStr("password"))) {
userEntity.setPassword(MD5.create().digestHex(body.getStr("password"))); userEntity.setPassword(MD5.create().digestHex(body.getStr("password")));