| | |
| | | // String token; |
| | | |
| | | String roleNames = sysUserService.getRoleNames(userId); |
| | | |
| | | // 当前时间 |
| | | Date now = new Date(); |
| | | // 过期时间 |
| | |
| | | CacheUtils.removeAll(Constant.Cache.TOKEN); |
| | | //CacheUtils.remove(Constant.Cache.TOKEN,token); |
| | | //CacheUtils.put(Constant.Cache.TOKEN,token,tokenEntity); |
| | | |
| | | SysUser user = sysUserService.get(userId); |
| | | Integer secretClass = user.getSecretClass(); |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put(Constant.Sys.TOKEN_HEADER, token); |
| | | map.put("expire", EXPIRE); |
| | | map.put("test", test); |
| | | map.put("roleName", roleNames); |
| | | map.put("userSecretClass", secretClass); |
| | | map.put("info", "OK"); |
| | | loginProcess(); |
| | | return Result.ok().ok(map); |