Showing
2 changed files
with
4 additions
and
3 deletions
@@ -103,8 +103,9 @@ public class UserInfoController { | @@ -103,8 +103,9 @@ public class UserInfoController { | ||
103 | public ResponseEntity<ResultModel> getUserInfo(HttpServletRequest request,@CurrentUser User user, | 103 | public ResponseEntity<ResultModel> getUserInfo(HttpServletRequest request,@CurrentUser User user, |
104 | @RequestParam String sign,@RequestParam long t,@RequestParam int type) { | 104 | @RequestParam String sign,@RequestParam long t,@RequestParam int type) { |
105 | 105 | ||
106 | - String dickName=user.getLoginAccount(); | ||
107 | - return new ResponseEntity<>(ResultModel.ok(dickName), HttpStatus.OK); | 106 | + long member_id=user.getMemberId(); |
107 | + XklMemberEntity xklMemberEntity=xklMemberRespository.findOne(member_id); | ||
108 | + return new ResponseEntity<>(ResultModel.ok(xklMemberEntity), HttpStatus.OK); | ||
108 | } | 109 | } |
109 | 110 | ||
110 | } | 111 | } |
-
Please register or login to post a comment