登录 绑定手机号
This commit is contained in:
parent
e3801e9595
commit
1be40d9bb6
@ -212,11 +212,19 @@ public class SysLoginController {
|
||||
AuthLoginReqVO authLoginReqVO = new AuthLoginReqVO();
|
||||
authLoginReqVO.setUsername(loginBody.getUsername());
|
||||
authLoginReqVO.setPassword(loginBody.getPassword());
|
||||
|
||||
AuthLoginRespVO login = loginService.login(authLoginReqVO);
|
||||
Map<String,Object> map = new HashMap<>();
|
||||
map.put("accessToken",login.getAccessToken());
|
||||
map.put("expiresTime",login.getExpiresTime());
|
||||
map.put("refreshToken",login.getRefreshToken());
|
||||
map.put("userId",login.getUserId());
|
||||
if(org.apache.commons.lang3.StringUtils.isEmpty(user.getMobile())){
|
||||
// 借用此字段设置需要填写手机号标志 为1时弹出验证手机号页面
|
||||
authLoginReqVO.setSocialState("1");
|
||||
map.put("needMobile","1");
|
||||
}else{
|
||||
map.put("needMobile","0");
|
||||
}
|
||||
return success(loginService.login(authLoginReqVO));
|
||||
return success(map);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -228,6 +228,7 @@ yudao:
|
||||
- /admin-api/rescue/wxLoginJc
|
||||
- /admin-api/rescue/loginJcApp
|
||||
- /admin-api/system/tenant/getListByWebsite
|
||||
- /admin-api/rescue/loginQx
|
||||
websocket:
|
||||
enable: true # websocket的开关
|
||||
path: /infra/ws # 路径
|
||||
|
Loading…
Reference in New Issue
Block a user