Commit 6e150202 by zwb

修改简历的用户登录校验

parent e19a9939
......@@ -122,11 +122,11 @@ public class NewEditionResumeController {
throw new JxgException("简历id不能为空");
}
this.newEditionResumeService.delResume(dto);
Long userId = 1L;
UserLoginInfo userLoginInfo = SecurityUtils.getUser();
if (userLoginInfo!=null){
userId = userLoginInfo.getId();
LoginUser loginUser = LoginHelper.getLoginUser();
if (null == loginUser){
throw new WarnException("用户信息获取失败");
}
Long userId = loginUser.getUserId();
this.resumeCacheService.delResumeCache(Long.valueOf(dto.getResumeId()), userId);
return R.ok();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment