|
@@ -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()));
|