Browse Source

注册账号时,若身份证被占用,不抛异常,直接更新

master
chenchaod 5 days ago
parent
commit
ac2935cc2f

+ 2
- 2
zhywpt-service-ias/src/main/java/cn/com/taiji/ias/manager/portal/RegisterNoCodeManager.java View File

@@ -56,15 +56,15 @@ public class RegisterNoCodeManager extends AbstractLoginManager implements LogMa
private AccountInfo from(RegisterNoCodeRequest request,AccountInfo accountInfo) {
if (accountInfo == null){
accountInfo = new AccountInfo();
accountInfo.setCreateTime(LocalDateTime.now());
accountInfo.setLoginPass(hasText(request.getLoginPass()) ? request.getLoginPass() : createPassword(10));
accountInfo.setNeedChangePasswordNow("0"); // 该用户主动修改密码后,设置其登录后不用提示去自行修改密码
}
// AccountInfo accountInfo = new AccountInfo();
accountInfo.setAppId(appId);
accountInfo.setMobile(request.getMobile());
accountInfo.setAccount(request.getMobile());
accountInfo.setNickName(request.getNickName());
accountInfo.setCreateTime(LocalDateTime.now());
accountInfo.setNeedChangePasswordNow("0"); // 该用户主动修改密码后,设置其登录后不用提示去自行修改密码
String openId = UUID.randomUUID().toString().replaceAll("-", "");
accountInfo.setOpenId(openId);
accountInfo.setIdType(request.getIdType());

Loading…
Cancel
Save