diff --git a/src/main/java/com/totopia/server/modules/user/service/UserService.java b/src/main/java/com/totopia/server/modules/user/service/UserService.java index e74d090..14cf1f0 100644 --- a/src/main/java/com/totopia/server/modules/user/service/UserService.java +++ b/src/main/java/com/totopia/server/modules/user/service/UserService.java @@ -101,13 +101,13 @@ public class UserService { } if (!newNickname.equals("") && !newNickname.equals(existNickname)) { - existEntity.setNickname(existEntity.getNickname()); + existEntity.setNickname(newNickname); } if (!newPhone.equals("") && !newPhone.equals(existPhone)) { - existEntity.setPhone(existEntity.getPhone()); + existEntity.setPhone(newPhone); } if (!newEmail.equals("") && !newEmail.equals(existEmail)) { - existEntity.setEmail(existEntity.getEmail()); + existEntity.setEmail(newEmail); } if (!newPassword.equals("") && !this.passwordEncoder.matches(newPassword,existPassword)) { @@ -115,7 +115,7 @@ public class UserService { existEntity.setLastResetTime(new Date()); } if (!newDescriptions.equals("") && !newDescriptions.equals(existDescriptions)) { - existEntity.setDescriptions(existEntity.getDescriptions()); + existEntity.setDescriptions(newDescriptions); } existEntity.setUpdatedAt(new Date());