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

微信登录修改

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