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

微信登录

上级 e26f8693
流水线 #14803 已失败 于阶段
in 0 second
......@@ -210,6 +210,7 @@ public class LoginServiceImpl implements LoginService {
String json;
if (accountInfoEntity == null) {
json = registerService.register(request);
/*
if (doubleWritingMode) {
//双写模式下,要在doctor表存储unionId
JSONObject jsonObject = JSONObject.parseObject(json);
......@@ -221,6 +222,7 @@ public class LoginServiceImpl implements LoginService {
doctorInfoMapper.updateByPrimaryKeySelective(doctor);
}
}
*/
} else {
json = processLogin(request, accountInfoEntity.getId(), AccountTypeEnum.LOGIN_WE_CHAT.getCode());
}
......@@ -273,7 +275,7 @@ public class LoginServiceImpl implements LoginService {
accountUnionEntity.setModifiedId(acctId);
accountUnionEntity.setUnionType(AccountTypeEnum.UNION_LOGIN_WE_CHAT.getCode());
accountUnionMapper.insertSelective(accountUnionEntity);
if (doubleWritingMode) {
if (doubleWritingMode) { //双写模式
doctorService.bindWeChat(acctId, unionId);
}
}
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册