Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hg-smart
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
platform
hg-smart
Commits
cf7e08e9
Commit
cf7e08e9
authored
Jul 25, 2024
by
liuyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2024-07-25 用户身份证号码验证
parent
e29476ce
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
ServiceXS0102.java
...java/com/baosight/xservices/xs/service/ServiceXS0102.java
+3
-1
ServiceXSUserManage.java
...om/baosight/xservices/xs/service/ServiceXSUserManage.java
+2
-2
No files found.
src/main/java/com/baosight/xservices/xs/service/ServiceXS0102.java
View file @
cf7e08e9
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
(
"注册失败!两次输入的密码不一致"
);
...
...
src/main/java/com/baosight/xservices/xs/service/ServiceXSUserManage.java
View file @
cf7e08e9
...
@@ -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"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment