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
29fffed7
Commit
29fffed7
authored
Sep 12, 2022
by
fangxinjiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
校验服务优化
parent
bf195c6c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
4 deletions
+16
-4
ChecksUtil.java
...n/java/com/yifu/cloud/plus/v1/check/utils/ChecksUtil.java
+16
-4
No files found.
yifu-check/yifu-check-api/src/main/java/com/yifu/cloud/plus/v1/check/utils/ChecksUtil.java
View file @
29fffed7
...
...
@@ -194,8 +194,11 @@ public class ChecksUtil {
params
.
put
(
ChecksConstants
.
ID_NUM
,
idNum
);
String
result
=
HttpUtils
.
post
(
API_URL
,
params
);
// 解析json,并返回结果
if
(
Common
.
isNotNull
(
result
)){
return
jsonParser
.
parse
(
result
).
getAsJsonObject
();
}
return
null
;
}
/**
* @Author fxj
...
...
@@ -210,8 +213,11 @@ public class ChecksUtil {
params
.
put
(
ChecksConstants
.
MOBILES
,
mobiles
);
String
result
=
HttpUtils
.
post
(
API_URL_MOBILE
,
params
);
// 解析json,并返回结果
if
(
Common
.
isNotNull
(
result
)){
return
jsonParser
.
parse
(
result
).
getAsJsonObject
();
}
return
null
;
}
private
static
JsonObject
invokeBankNo
(
String
name
,
String
idNum
,
String
cardNo
,
String
mobile
)
{
Map
<
String
,
String
>
params
=
new
HashMap
<>();
...
...
@@ -225,8 +231,11 @@ public class ChecksUtil {
}
String
result
=
HttpUtils
.
post
(
API_URL_BANK_NO
,
params
);
// 解析json,并返回结果
if
(
Common
.
isNotNull
(
result
)){
return
jsonParser
.
parse
(
result
).
getAsJsonObject
();
}
return
null
;
}
private
static
JsonObject
invokeBankNoTwoAuth
(
String
name
,
String
cardNo
)
{
Map
<
String
,
String
>
params
=
new
HashMap
<>();
...
...
@@ -236,6 +245,9 @@ public class ChecksUtil {
params
.
put
(
ChecksConstants
.
CARD_NO
,
cardNo
);
String
result
=
HttpUtils
.
post
(
API_URL_BANK_NO_TWO
,
params
);
// 解析json,并返回结果
if
(
Common
.
isNotNull
(
result
)){
return
jsonParser
.
parse
(
result
).
getAsJsonObject
();
}
return
null
;
}
}
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