大屏接口修改

This commit is contained in:
mashuai 2023-12-09 23:17:04 +08:00
parent 5b10a323ae
commit edfe1dbd25
4 changed files with 5 additions and 2 deletions

View File

@ -6,7 +6,7 @@ public class UserVo {
//用户id //用户id
private String userId; private Long userId;
//用户手机号 //用户手机号
private String phonenumber; private String phonenumber;

View File

@ -115,6 +115,8 @@ public class SysLoginService
recordLogService.recordLogininfor(username, Constants.LOGIN_SUCCESS, "登录成功"); recordLogService.recordLogininfor(username, Constants.LOGIN_SUCCESS, "登录成功");
Long userId = user.getUserId(); Long userId = user.getUserId();
R<UserVo> userVoR = remoteUserService.selectUserVo(userId); R<UserVo> userVoR = remoteUserService.selectUserVo(userId);
userVoR.getData().setPhonenumber(user.getPhonenumber());
userVoR.getData().setUserId(userId);
userInfo.setUserVo(userVoR.getData()); userInfo.setUserVo(userVoR.getData());
return userInfo; return userInfo;
} }

View File

@ -67,6 +67,7 @@ public class TokenService
Map<String, Object> rspMap = new HashMap<String, Object>(); Map<String, Object> rspMap = new HashMap<String, Object>();
rspMap.put("access_token", JwtUtils.createToken(claimsMap)); rspMap.put("access_token", JwtUtils.createToken(claimsMap));
rspMap.put("expires_in", expireTime); rspMap.put("expires_in", expireTime);
rspMap.put("user",loginUser.getUserVo());
return rspMap; return rspMap;
} }