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

fix: wechat login set mobile to session

上级 2ad435f7
流水线 #29243 已失败 于阶段
in 0 second
...@@ -409,7 +409,7 @@ public class LoginServiceImpl implements LoginService { ...@@ -409,7 +409,7 @@ public class LoginServiceImpl implements LoginService {
account.setCreatTime(new Date()); account.setCreatTime(new Date());
Doctor d = doctorInfoMapper.selectByPrimaryKey(Math.toIntExact(userId)); Doctor d = doctorInfoMapper.selectByPrimaryKey(Math.toIntExact(userId));
if (d != null && StringUtils.isNotBlank(d.getMobilePhone())){ if (d != null && StringUtils.isNotBlank(d.getMobilePhone())){
account.setMobilePhone(d.getMobilePhone()); account.setMobilePhone(AESUtil.decryptV0(d.getMobilePhone()));
} else { } else {
account.setMobilePhone(""); account.setMobilePhone("");
} }
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册