martin 3 år sedan
förälder
incheckning
05e6ede5f2

+ 2 - 0
simulation-oauth-server/src/main/java/com/css/simulation/oauth/server/cofiguration/oauth/MyUserAuthenticationConverter.java

@@ -19,6 +19,8 @@ public class MyUserAuthenticationConverter extends DefaultUserAuthenticationConv
         //1 用户基本信息
         response.put("username", authentication.getName());
         response.put("phone", myUserDetails.getPhone());
+        response.put("isSub", myUserDetails.getIsSub());
+        response.put("parentId", myUserDetails.getParentId());
         //2 用户权限信息
         if (authentication.getAuthorities() != null && !authentication.getAuthorities().isEmpty()) {
             response.put(AUTHORITIES, AuthorityUtils.authorityListToSet(authentication.getAuthorities()));