|
|
@@ -89,6 +89,8 @@ public class IndexService {
|
|
|
|
|
|
@Autowired
|
|
|
UserAccountServiceImpl userAccountService;
|
|
|
+ @Autowired
|
|
|
+ private RoleServiceImpl roleServiceImpl;
|
|
|
|
|
|
/**
|
|
|
* 登录 只验证 用户名 和密码
|
|
|
@@ -182,9 +184,15 @@ public class IndexService {
|
|
|
LoginPlatformTokenModel tokenModel = new LoginPlatformTokenModel();
|
|
|
com.zhongshu.card.server.core.util.BeanUtils.copyProperties(loginTokenModel, tokenModel);
|
|
|
tokenModel.setPlatformOid(organization.getOid());
|
|
|
+
|
|
|
+ // 查询用户信息
|
|
|
OrganizationUserModel userModel = userAccountService.toOrgUserModel(organizationUser);
|
|
|
tokenModel.setUserInfo(userModel);
|
|
|
|
|
|
+ ResultContent<Set<String>> authContent = roleServiceImpl.getOrganizationAuth(organization.getOid());
|
|
|
+ if (authContent.isSuccess()) {
|
|
|
+ tokenModel.setAuths(authContent.getContent());
|
|
|
+ }
|
|
|
return ResultContent.buildSuccess(tokenModel);
|
|
|
}
|
|
|
|