Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cust-api
Project
Project
Details
Activity
Releases
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
李伟
cust-api
Commits
45672db0
Commit
45672db0
authored
Mar 24, 2025
by
liwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加了人脸识别通过身份证获取性别
parent
2e900013
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
FaceVerifyServiceImpl.java
...libaba/faceVerify/service/impl/FaceVerifyServiceImpl.java
+2
-0
No files found.
src/main/java/org/rcisoft/alibaba/faceVerify/service/impl/FaceVerifyServiceImpl.java
View file @
45672db0
...
@@ -271,6 +271,8 @@ public class FaceVerifyServiceImpl extends ServiceImpl<MemInfoRepository, MemInf
...
@@ -271,6 +271,8 @@ public class FaceVerifyServiceImpl extends ServiceImpl<MemInfoRepository, MemInf
Integer
coinCount
=
Integer
.
valueOf
(
dictData
.
getDictValue
());
Integer
coinCount
=
Integer
.
valueOf
(
dictData
.
getDictValue
());
memInfo
.
setMemRealAuthen
(
"1"
);
memInfo
.
setMemRealAuthen
(
"1"
);
memInfo
.
setMemRealAuthenDate
(
new
Date
());
memInfo
.
setMemRealAuthenDate
(
new
Date
());
//根据身份证号获取性别
memInfo
.
setMemSex
(
Integer
.
valueOf
(
idCard
.
substring
(
16
,
17
))
%
2
==
0
?
"1"
:
"0"
);
//截取idCard身份证号 获取出生年月日20021029 变成2002-10-29
//截取idCard身份证号 获取出生年月日20021029 变成2002-10-29
String
birth
=
idCard
.
substring
(
6
,
14
);
String
birth
=
idCard
.
substring
(
6
,
14
);
String
birthDate
=
birth
.
substring
(
0
,
4
)
+
"-"
+
birth
.
substring
(
4
,
6
)
+
"-"
+
birth
.
substring
(
6
);
String
birthDate
=
birth
.
substring
(
0
,
4
)
+
"-"
+
birth
.
substring
(
4
,
6
)
+
"-"
+
birth
.
substring
(
6
);
...
...
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