|
|
@@ -89,11 +89,15 @@ public class UserService {
|
|
|
.ifPresent(user -> {
|
|
|
throw CustomErrorException.phoneAlreadyExist();
|
|
|
});
|
|
|
-
|
|
|
+ System.out.println(1);
|
|
|
User user = userMapper.userVOToUser(userVO);
|
|
|
+ System.out.println(2);
|
|
|
String encodedPassword = passwordEncoder.encode(password);
|
|
|
+ System.out.println(3);
|
|
|
user.setPassword(encodedPassword);
|
|
|
+ System.out.println(4);
|
|
|
User savedUser = userRepository.save(user);
|
|
|
+ System.out.println(5);
|
|
|
|
|
|
try {
|
|
|
gitlabService.createGitlabUser(Math.toIntExact(savedUser.getId()), savedUser.getUsername(), password, savedUser.getEmail());
|
|
|
@@ -101,8 +105,6 @@ public class UserService {
|
|
|
userRepository.delete(savedUser);
|
|
|
throw new CustomErrorException("gitlab 创建异常");
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
log.debug("Created Information for User: {}",savedUser);
|
|
|
return savedUser;
|
|
|
}
|