调整个人中心接口登录问题

This commit is contained in:
TinyAnts 2023-03-17 11:42:36 +08:00
parent 638d5865dc
commit 787e8edc45
1 changed files with 0 additions and 4 deletions

View File

@ -28,14 +28,10 @@ public class UserController {
@Resource
IUserService iUserService;
@NotLogin
@GetMapping("/center")
@ApiOperation(value="个人中心")
public AjaxResult<UserCenterVo> center() {
Integer userId = LikeFrontThreadLocal.getUserId();
if (userId == 0) {
throw new OperateException("未登录", 1);
}
UserCenterVo vo = iUserService.center(userId);
return AjaxResult.success(vo);