|
@@ -286,6 +286,17 @@ public class UserServiceImpl implements UserService {
|
|
|
throw new EntityExistException(User.class, "错误:", "注册用户失败");
|
|
throw new EntityExistException(User.class, "错误:", "注册用户失败");
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+ } else if(UserConstant.USER_TYPE_BANK.equals(resources.getUserType())){
|
|
|
|
|
+ try {
|
|
|
|
|
+ // 安心签注册个人用户
|
|
|
|
|
+ PersonVO person = PersonVO.builder().personName(resources.getNickName())
|
|
|
|
|
+ .identNo(resources.getIdCard()).mobilePhone(resources.getPhone()).build();
|
|
|
|
|
+ String userId = CFCACertUtil.registerPerson(person);
|
|
|
|
|
+ resources.setAxqUserId(userId);
|
|
|
|
|
+ } catch (Exception e) {
|
|
|
|
|
+ e.printStackTrace();
|
|
|
|
|
+ throw new EntityExistException(User.class, "错误:", "注册用户失败");
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
userRepository.save(resources);
|
|
userRepository.save(resources);
|