|
|
@ -82,11 +82,19 @@ public class SysLoginController
|
|
|
|
public AjaxResult getInfo()
|
|
|
|
public AjaxResult getInfo()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
SysUser user = SecurityUtils.getLoginUser().getUser();
|
|
|
|
SysUser user = SecurityUtils.getLoginUser().getUser();
|
|
|
|
|
|
|
|
|
|
|
|
// 角色集合
|
|
|
|
// 角色集合
|
|
|
|
Set<String> roles = permissionService.getRolePermission(user);
|
|
|
|
Set<String> roles = permissionService.getRolePermission(user);
|
|
|
|
// 权限集合
|
|
|
|
// 权限集合
|
|
|
|
Set<String> permissions = permissionService.getMenuPermission(user);
|
|
|
|
Set<String> permissions = permissionService.getMenuPermission(user);
|
|
|
|
AjaxResult ajax = AjaxResult.success();
|
|
|
|
AjaxResult ajax = AjaxResult.success();
|
|
|
|
|
|
|
|
//判断密码是否为初始密码
|
|
|
|
|
|
|
|
if (user.getPassword().equals("Yingji@123")){
|
|
|
|
|
|
|
|
ajax.put("status",1);
|
|
|
|
|
|
|
|
}else{
|
|
|
|
|
|
|
|
ajax.put("status",0);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
ajax.put("user", user);
|
|
|
|
ajax.put("user", user);
|
|
|
|
ajax.put("roles", roles);
|
|
|
|
ajax.put("roles", roles);
|
|
|
|
ajax.put("permissions", permissions);
|
|
|
|
ajax.put("permissions", permissions);
|
|
|
|