diff --git a/cweb/src/main/java/com/hfkj/controller/UserController.java b/cweb/src/main/java/com/hfkj/controller/UserController.java index 1aae6f1..fcc7a64 100644 --- a/cweb/src/main/java/com/hfkj/controller/UserController.java +++ b/cweb/src/main/java/com/hfkj/controller/UserController.java @@ -75,6 +75,21 @@ public class UserController { } } + @RequestMapping(value = "/getInviteUser", method = RequestMethod.GET) + @ResponseBody + @ApiOperation(value = "查询邀请人信息") + public ResponseData getInviteUser() { + try { + UserSessionObject userSessionObject = userCenter.getSessionModel(UserSessionObject.class); + if (userSessionObject.getUser().getInviteUserId() != null) { + return ResponseMsgUtil.success(userService.getUser(userSessionObject.getUser().getInviteUserId())); + } + return ResponseMsgUtil.success(null); + } catch (Exception e) { + return ResponseMsgUtil.exception(e); + } + } + @RequestMapping(value="uploadHead",method = RequestMethod.POST) @ResponseBody @ApiOperation(value = "头像上传")