Merge remote-tracking branch 'origin/lixuetao' into lixuetao
This commit is contained in:
@@ -350,7 +350,9 @@ public class LoginRestController {
|
|||||||
CacheUtils.putShiroSessionCache(userEO.getUsid(), session.getId());
|
CacheUtils.putShiroSessionCache(userEO.getUsid(), session.getId());
|
||||||
}
|
}
|
||||||
|
|
||||||
return Result.success(beanMapper.map(returnEO, UserVO.class));
|
ResponseMessage<UserVO> result = Result.success(beanMapper.map(returnEO, UserVO.class));
|
||||||
|
result.getData().setSessionId(session.getId());
|
||||||
|
return result;
|
||||||
|
|
||||||
} catch (CaptchaException e) {
|
} catch (CaptchaException e) {
|
||||||
log.info("验证码验证失败");
|
log.info("验证码验证失败");
|
||||||
@@ -506,12 +508,12 @@ public class LoginRestController {
|
|||||||
@ResponseBody
|
@ResponseBody
|
||||||
@ApiOperation(value = "SSO,根据Code返回用户信息")
|
@ApiOperation(value = "SSO,根据Code返回用户信息")
|
||||||
public ResponseMessage ssoLogin(String code, HttpServletRequest request){
|
public ResponseMessage ssoLogin(String code, HttpServletRequest request){
|
||||||
// if (StrUtil.isBlank(code)) {
|
if (StrUtil.isBlank(code)) {
|
||||||
// return Result.error("无法单点登录,code为空");
|
return Result.error("无法单点登录,code为空");
|
||||||
// }
|
}
|
||||||
// String username = userService.ssoLogin(code);
|
String username = userService.ssoLogin(code);
|
||||||
|
|
||||||
UsernamePasswordToken token = new UsernamePasswordToken("chh");
|
UsernamePasswordToken token = new UsernamePasswordToken(username);
|
||||||
|
|
||||||
return login(request, token);
|
return login(request, token);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -284,6 +284,7 @@ public class ReportManageConroller {
|
|||||||
return Result.success();
|
return Result.success();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO 测试完不需要的代码请删掉,然后再把这个TODO也删掉
|
||||||
/**
|
/**
|
||||||
* 测试
|
* 测试
|
||||||
*/
|
*/
|
||||||
@@ -294,6 +295,8 @@ public class ReportManageConroller {
|
|||||||
stringRedisTemplate.boundValueOps("1121212").set("1212");
|
stringRedisTemplate.boundValueOps("1121212").set("1212");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO 测试完不需要的代码请删掉,然后再把这个TODO也删掉
|
||||||
@ApiOperation("testPath")
|
@ApiOperation("testPath")
|
||||||
@GetMapping("/testPath")
|
@GetMapping("/testPath")
|
||||||
@Deprecated
|
@Deprecated
|
||||||
|
|||||||
@@ -56,4 +56,6 @@ public class UserVO {
|
|||||||
private List<OrgEO> orgEOList = new ArrayList();
|
private List<OrgEO> orgEOList = new ArrayList();
|
||||||
|
|
||||||
private String employeeTypeId;
|
private String employeeTypeId;
|
||||||
|
|
||||||
|
private String sessionId;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user