提交 2ad435f7 编写于 作者: fengyuan.wan's avatar fengyuan.wan

fix: wechat login set mobile to session

上级 7afb799d
流水线 #29240 已失败 于阶段
in 2 second
......@@ -407,8 +407,12 @@ public class LoginServiceImpl implements LoginService {
account.setId(userId);
account.setAcctId(acctId.intValue());
account.setCreatTime(new Date());
account.setMobilePhone(request.getMobile());
// account.setMobilePhone("");
Doctor d = doctorInfoMapper.selectByPrimaryKey(Math.toIntExact(userId));
if (d != null && StringUtils.isNotBlank(d.getMobilePhone())){
account.setMobilePhone(d.getMobilePhone());
} else {
account.setMobilePhone("");
}
account.setRegisterSource(request.getSourceType());
String newToken = tokenUtils.generateToken(account);
LoginResult result = new LoginResult();
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册