提交 b627a345 编写于 作者: Chongwen.jiang's avatar Chongwen.jiang

微信和apple登录绑定手机号判断提示修改

上级 d7941bbd
流水线 #22498 已失败 于阶段
in 1 second
...@@ -416,7 +416,9 @@ public class LoginServiceImpl implements LoginService { ...@@ -416,7 +416,9 @@ public class LoginServiceImpl implements LoginService {
throw new PicaException(AccountExceptionEnum.PICA_WECHAT_UNBIND.getCode(), AccountExceptionEnum.PICA_WECHAT_UNBIND.getMessage()); throw new PicaException(AccountExceptionEnum.PICA_WECHAT_UNBIND.getCode(), AccountExceptionEnum.PICA_WECHAT_UNBIND.getMessage());
} }
AccountUnionEntity accountUnionEntityAccount = accountUnionMapper.selectByAcctId(acctId); AccountUnionEntity accountUnionEntityAccount = accountUnionMapper.selectByAcctId(acctId);
if (accountUnionEntityAccount != null) { if (accountUnionEntityAccount != null &&
StringUtils.isNotEmpty(accountUnionEntityAccount.getUnionId()) &&
accountUnionEntityAccount.getUnionType() == AccountTypeEnum.UNION_LOGIN_WE_CHAT.getCode()) {
throw new PicaException(AccountExceptionEnum.PICA_WECHAT_BIND_OTHER.getCode(), AccountExceptionEnum.PICA_WECHAT_BIND_OTHER.getMessage()); throw new PicaException(AccountExceptionEnum.PICA_WECHAT_BIND_OTHER.getCode(), AccountExceptionEnum.PICA_WECHAT_BIND_OTHER.getMessage());
} }
AccountUnionEntity accountUnionEntity = new AccountUnionEntity(); AccountUnionEntity accountUnionEntity = new AccountUnionEntity();
...@@ -799,7 +801,9 @@ public class LoginServiceImpl implements LoginService { ...@@ -799,7 +801,9 @@ public class LoginServiceImpl implements LoginService {
AccountExceptionEnum.PICA_APPLE_BIND_OTHER.getMessage()); AccountExceptionEnum.PICA_APPLE_BIND_OTHER.getMessage());
} }
AccountUnionEntity accountUnionEntityAccount = accountUnionMapper.selectByAcctId(acctId); AccountUnionEntity accountUnionEntityAccount = accountUnionMapper.selectByAcctId(acctId);
if (accountUnionEntityAccount != null) { if (accountUnionEntityAccount != null &&
StringUtils.isNotEmpty(accountUnionEntityAccount.getUnionId()) &&
accountUnionEntityAccount.getUnionType() == AccountTypeEnum.UNION_LOGIN_APPLE.getCode()) {
throw new PicaException( throw new PicaException(
AccountExceptionEnum.PICA_MOBILE_BIND_OTHER.getCode(), AccountExceptionEnum.PICA_MOBILE_BIND_OTHER.getCode(),
AccountExceptionEnum.PICA_MOBILE_BIND_OTHER.getMessage()); AccountExceptionEnum.PICA_MOBILE_BIND_OTHER.getMessage());
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册