提交 c991078b 编写于 作者: dong.an's avatar dong.an

微信登录修改

上级 d104d864
流水线 #16701 已失败 于阶段
in 0 second
...@@ -241,7 +241,6 @@ public class LoginServiceImpl implements LoginService { ...@@ -241,7 +241,6 @@ public class LoginServiceImpl implements LoginService {
result = registerService.register(request); result = registerService.register(request);
if (doubleWritingMode) { if (doubleWritingMode) {
//双写模式下,要在doctor表存储unionId //双写模式下,要在doctor表存储unionId
if (result.getUserId()!=null) { if (result.getUserId()!=null) {
Doctor doctor = new Doctor(); Doctor doctor = new Doctor();
doctor.setId(result.getUserId().intValue()); doctor.setId(result.getUserId().intValue());
...@@ -252,6 +251,7 @@ public class LoginServiceImpl implements LoginService { ...@@ -252,6 +251,7 @@ public class LoginServiceImpl implements LoginService {
} else { } else {
result = processLogin(request, accountInfoEntity.getId(), AccountTypeEnum.LOGIN_WE_CHAT.getCode()); result = processLogin(request, accountInfoEntity.getId(), AccountTypeEnum.LOGIN_WE_CHAT.getCode());
} }
result.setMobile(request.getMobile());
AccountInfoEntity accountInfo = accountInfoDetailMapper.selectByMobile(AESUtil.encryptV0(request.getMobile())); AccountInfoEntity accountInfo = accountInfoDetailMapper.selectByMobile(AESUtil.encryptV0(request.getMobile()));
Integer acctId = accountInfo.getId(); Integer acctId = accountInfo.getId();
processAccountUnion(acctId, request.getUnionId()); processAccountUnion(acctId, request.getUnionId());
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册