mirror of
https://gitee.com/likeadmin/likeadmin_java.git
synced 2026-05-07 15:46:09 +08:00
调整个人中心接口登录问题
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user