Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
yifu-mvp
Project
Project
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
fangxinjiang
yifu-mvp
Commits
a29573d3
Commit
a29573d3
authored
Aug 22, 2022
by
fangxinjiang
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/develop' into develop
parents
4d32c429
80f09c69
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
ChecksConstants.java
...om/yifu/cloud/plus/v1/check/constant/ChecksConstants.java
+1
-0
ChecksUtil.java
...n/java/com/yifu/cloud/plus/v1/check/utils/ChecksUtil.java
+4
-4
No files found.
yifu-check/yifu-check-api/src/main/java/com/yifu/cloud/plus/v1/check/constant/ChecksConstants.java
View file @
a29573d3
...
...
@@ -19,6 +19,7 @@ public interface ChecksConstants {
String
NO_DATA_RESULT
=
"接口无返回数据"
;
String
MESSAGE
=
"message"
;
String
MESSAGE_INFO
=
",msg:"
;
String
MOBILE
=
"mobile"
;
...
...
yifu-check/yifu-check-api/src/main/java/com/yifu/cloud/plus/v1/check/utils/ChecksUtil.java
View file @
a29573d3
...
...
@@ -100,7 +100,7 @@ public class ChecksUtil {
}
}
else
{
// 记录错误日志,正式项目中请换成log打印
return
R
.
failed
(
"银行卡号校验失败,code:"
+
code
+
",msg:"
+
jsonObject
.
get
(
ChecksConstants
.
MESSAGE
).
getAsString
());
return
R
.
failed
(
"银行卡号校验失败,code:"
+
code
+
ChecksConstants
.
MESSAGE_INFO
+
jsonObject
.
get
(
ChecksConstants
.
MESSAGE
).
getAsString
());
}
}
else
{
return
R
.
failed
(
ChecksConstants
.
NO_DATA_RESULT
);
...
...
@@ -146,7 +146,7 @@ public class ChecksUtil {
}
}
else
{
// 记录错误日志,正式项目中请换成log打印
return
R
.
failed
(
"手机号校验失败,code:"
+
code
+
",msg:"
+
jsonObject
.
get
(
ChecksConstants
.
MESSAGE
).
getAsString
());
return
R
.
failed
(
"手机号校验失败,code:"
+
code
+
ChecksConstants
.
MESSAGE_INFO
+
jsonObject
.
get
(
ChecksConstants
.
MESSAGE
).
getAsString
());
}
}
else
{
return
R
.
failed
(
ChecksConstants
.
NO_DATA_RESULT
);
...
...
@@ -173,12 +173,12 @@ public class ChecksUtil {
}
else
{
checkIdCard
.
setIsTrue
(
CommonConstants
.
ZERO_INT
);
String
remark
=
getJsonElementValue
(
resultJson
.
get
(
ChecksConstants
.
REMARK
));
checkIdCard
.
setReason
(
"调用身份信息校验失败,resultStr:"
+
resultStr
+
",msg:"
+
remark
);
checkIdCard
.
setReason
(
"调用身份信息校验失败,resultStr:"
+
resultStr
+
ChecksConstants
.
MESSAGE_INFO
+
remark
);
}
}
else
{
// 记录错误日志,正式项目中请换成log打印
checkIdCard
.
setIsTrue
(
CommonConstants
.
ZERO_INT
);
checkIdCard
.
setReason
(
"调用身份信息校验失败,code:"
+
code
+
",msg:"
+
jsonObject
.
get
(
ChecksConstants
.
MESSAGE
).
getAsString
());
checkIdCard
.
setReason
(
"调用身份信息校验失败,code:"
+
code
+
ChecksConstants
.
MESSAGE_INFO
+
jsonObject
.
get
(
ChecksConstants
.
MESSAGE
).
getAsString
());
}
}
else
{
checkIdCard
.
setIsTrue
(
CommonConstants
.
ZERO_INT
);
...
...
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