Commit 6e150202 by zwb

修改简历的用户登录校验

parent e19a9939
...@@ -122,11 +122,11 @@ public class NewEditionResumeController { ...@@ -122,11 +122,11 @@ public class NewEditionResumeController {
throw new JxgException("简历id不能为空"); throw new JxgException("简历id不能为空");
} }
this.newEditionResumeService.delResume(dto); this.newEditionResumeService.delResume(dto);
Long userId = 1L; LoginUser loginUser = LoginHelper.getLoginUser();
UserLoginInfo userLoginInfo = SecurityUtils.getUser(); if (null == loginUser){
if (userLoginInfo!=null){ throw new WarnException("用户信息获取失败");
userId = userLoginInfo.getId();
} }
Long userId = loginUser.getUserId();
this.resumeCacheService.delResumeCache(Long.valueOf(dto.getResumeId()), userId); this.resumeCacheService.delResumeCache(Long.valueOf(dto.getResumeId()), userId);
return R.ok(); 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