提交 eef96540 作者: xiaowang

bug修复

上级 42884d56
...@@ -45,6 +45,9 @@ public class UserFddAuthServiceImpl implements UserFddAuthService { ...@@ -45,6 +45,9 @@ public class UserFddAuthServiceImpl implements UserFddAuthService {
@Autowired @Autowired
private UserFddAuthDao userFddAuthDao; private UserFddAuthDao userFddAuthDao;
@Autowired
private UserFddAuthService userFddAuthService;
@Override @Override
public String register(String uid, String accountType) { public String register(String uid, String accountType) {
return fddService.register(uid, accountType); return fddService.register(uid, accountType);
...@@ -213,8 +216,20 @@ public class UserFddAuthServiceImpl implements UserFddAuthService { ...@@ -213,8 +216,20 @@ public class UserFddAuthServiceImpl implements UserFddAuthService {
if (port.equals(0)) { if (port.equals(0)) {
UserAccountDO userInfo = userServiceDao.getUserAccountById(loginSuccessDTO.getUserAccountId()); UserAccountDO userInfo = userServiceDao.getUserAccountById(loginSuccessDTO.getUserAccountId());
uId = this.replaceUnableString(userInfo.getUnionId()); uId = this.replaceUnableString(userInfo.getUnionId());
if (flag == 2) { UserFddDO userFddInfo = userFddAuthDao.getAppUserFddInfo(uId);
uId = this.replaceUnableString(userInfo.getOpenId()); if (userFddInfo == null) {
uId = userFddAuthService.replaceUnableString(userInfo.getOpenId());
} else {
Integer accountType = userFddInfo.getAccountType();
Integer personVerifyStatus = userFddInfo.getPersonVerifyStatus();
Integer entVerifyStatus = userFddInfo.getEntVerifyStatus();
boolean isPersonVerified = accountType.equals(1) && !personVerifyStatus.equals(2);
boolean isEntVerified = accountType.equals(2) && !entVerifyStatus.equals(4);
if (isPersonVerified || isEntVerified) {
uId = userFddAuthService.replaceUnableString(userInfo.getOpenId());
}
} }
} else { } else {
uId = loginSuccessDTO.getUserAccountId().toString(); uId = loginSuccessDTO.getUserAccountId().toString();
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论