Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform
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
youjj
cloud-platform
Commits
4adce330
Commit
4adce330
authored
Nov 25, 2019
by
hanfeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改实名认证
parent
76918de6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
CertificationService.java
...xxfc/platform/universal/service/CertificationService.java
+5
-5
No files found.
xx-universal/xx-universal-server/src/main/java/com/xxfc/platform/universal/service/CertificationService.java
View file @
4adce330
...
@@ -78,14 +78,14 @@ public class CertificationService {
...
@@ -78,14 +78,14 @@ public class CertificationService {
}
}
//判断是否有填写身份证号
//判断是否有填写身份证号
if
(
StringUtils
.
isBlank
(
idInformation
.
getIdNumber
()))
{
if
(
StringUtils
.
isBlank
(
idInformation
.
getIdNumber
()))
{
return
ObjectRestResponse
.
createFailedResult
(
ResultCode
.
INCOMPLETE_DATA
,
"
未
填写证件号"
);
return
ObjectRestResponse
.
createFailedResult
(
ResultCode
.
INCOMPLETE_DATA
,
"
请
填写证件号"
);
}
}
if
(!
Validation
.
isIdCard
(
idInformation
.
getIdNumber
()))
{
if
(!
Validation
.
isIdCard
(
idInformation
.
getIdNumber
()))
{
return
ObjectRestResponse
.
createFailedResult
(
ResultCode
.
WRONG_FORMAT_OF_ID_CARD
,
"
填写的
证件格式错误"
);
return
ObjectRestResponse
.
createFailedResult
(
ResultCode
.
WRONG_FORMAT_OF_ID_CARD
,
"证件格式错误"
);
}
}
//判断是有否填写名字
//判断是有否填写名字
if
(
StringUtils
.
isBlank
(
idInformation
.
getName
()))
{
if
(
StringUtils
.
isBlank
(
idInformation
.
getName
()))
{
return
ObjectRestResponse
.
createFailedResult
(
ResultCode
.
INCOMPLETE_DATA
,
"
未
填写姓名"
);
return
ObjectRestResponse
.
createFailedResult
(
ResultCode
.
INCOMPLETE_DATA
,
"
请
填写姓名"
);
}
}
//判断是否有正面照片
//判断是否有正面照片
if
(
StringUtils
.
isBlank
(
idInformation
.
getFrontUrl
()))
{
if
(
StringUtils
.
isBlank
(
idInformation
.
getFrontUrl
()))
{
...
@@ -100,10 +100,10 @@ public class CertificationService {
...
@@ -100,10 +100,10 @@ public class CertificationService {
//验证证件信息是否和填入的客户信息一致
//验证证件信息是否和填入的客户信息一致
String
name
=
credentialsData
.
getName
();
String
name
=
credentialsData
.
getName
();
String
number
=
credentialsData
.
getCode
();
String
number
=
credentialsData
.
getCode
();
if
(
idInformation
.
getName
().
equals
(
name
))
{
if
(
idInformation
.
getName
().
replaceAll
(
" "
,
""
).
equals
(
name
))
{
return
ObjectRestResponse
.
createFailedResult
(
ResultCode
.
FAILED_CODE
,
"姓名不一致"
);
return
ObjectRestResponse
.
createFailedResult
(
ResultCode
.
FAILED_CODE
,
"姓名不一致"
);
}
}
if
(
idInformation
.
getIdNumber
().
equals
(
number
))
{
if
(
idInformation
.
getIdNumber
().
replaceAll
(
" "
,
""
).
equals
(
number
))
{
return
ObjectRestResponse
.
createFailedResult
(
ResultCode
.
FAILED_CODE
,
"证件号不一致"
);
return
ObjectRestResponse
.
createFailedResult
(
ResultCode
.
FAILED_CODE
,
"证件号不一致"
);
}
}
//判断是否超过认证次数
//判断是否超过认证次数
...
...
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