humuyu 3 vuotta sitten
vanhempi
commit
5bbc18dbd5

+ 11 - 0
eladmin-system/src/main/java/me/zhengjie/application/admin/service/impl/UserServiceImpl.java

@@ -286,6 +286,17 @@ public class UserServiceImpl implements UserService {
                     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);

+ 1 - 1
eladmin-system/src/main/resources/config/application.yml

@@ -3,7 +3,7 @@ spring:
   freemarker:
     check-template-location: false
   profiles:
-    active: dev
+    active: prod
   jackson:
     time-zone: GMT+8
   data: