Commit cf7e08e9 by liuyang

2024-07-25 用户身份证号码验证

parent e29476ce
package com.baosight.xservices.xs.service; package com.baosight.xservices.xs.service;
import com.baosight.hggp.core.security.UserSessionUtils; import com.baosight.hggp.core.security.UserSessionUtils;
import com.baosight.hggp.hg.sc.util.HGSCUtil;
import com.baosight.hggp.util.AssertUtils;
import com.baosight.hggp.util.ObjectUtils; import com.baosight.hggp.util.ObjectUtils;
import com.baosight.iplat4j.core.ei.EiBlock; import com.baosight.iplat4j.core.ei.EiBlock;
import com.baosight.iplat4j.core.ei.EiConstant; import com.baosight.iplat4j.core.ei.EiConstant;
...@@ -79,7 +81,7 @@ public class ServiceXS0102 extends ServiceEPBase implements LoginConstants { ...@@ -79,7 +81,7 @@ public class ServiceXS0102 extends ServiceEPBase implements LoginConstants {
inInfo.setMsg("注册失败!登录账号,用户姓名,密码,确认密码,手机及身份证信息都必须填写"); inInfo.setMsg("注册失败!登录账号,用户姓名,密码,确认密码,手机及身份证信息都必须填写");
return inInfo; return inInfo;
} }
AssertUtils.isTrue(!HGSCUtil.isValidChineseID(idCard), "请填写正确的身份证号!");
if (!rePass.equals(password)) { if (!rePass.equals(password)) {
inInfo.setStatus(-1); inInfo.setStatus(-1);
inInfo.setMsg("注册失败!两次输入的密码不一致"); inInfo.setMsg("注册失败!两次输入的密码不一致");
......
...@@ -108,9 +108,9 @@ public class ServiceXSUserManage extends ServiceEPBase { ...@@ -108,9 +108,9 @@ public class ServiceXSUserManage extends ServiceEPBase {
inInfoRowMap.put("gender", " "); inInfoRowMap.put("gender", " ");
} }
/*if (!com.baosight.iplat4j.core.util.StringUtils.isNotEmpty(mobile)) { if (!com.baosight.iplat4j.core.util.StringUtils.isNotEmpty(mobile)) {
inInfoRowMap.put("mobile", " "); inInfoRowMap.put("mobile", " ");
}*/ }
inInfoRowMap.put("recCreateTime", DateUtils.curDateTimeStr14()); inInfoRowMap.put("recCreateTime", DateUtils.curDateTimeStr14());
accountExpireDays = StringUtils.defaultIfEmpty(PlatApplicationContext.getProperty("xservices.security.accountExpireDays"), "90"); accountExpireDays = StringUtils.defaultIfEmpty(PlatApplicationContext.getProperty("xservices.security.accountExpireDays"), "90");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment