Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
holmes
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
QA
holmes
Commits
abf698b2
Commit
abf698b2
authored
Apr 16, 2021
by
黎博
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
d3440ce7
Pipeline
#869
failed with stages
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
2 deletions
+16
-2
RuleEngineInterceptor.java
.../java/cn/qg/holmes/interceptor/RuleEngineInterceptor.java
+16
-2
No files found.
src/main/java/cn/qg/holmes/interceptor/RuleEngineInterceptor.java
View file @
abf698b2
...
...
@@ -31,6 +31,15 @@ public class RuleEngineInterceptor implements HandlerInterceptor {
@Value
(
"${early.settle.channel}"
)
private
String
earlySettleChannel
;
@Value
(
"${vcc.audit.result}"
)
private
boolean
vccAuditResult
;
@Value
(
"${vcc.audit.amount}"
)
private
Integer
vccAuditMount
;
@Value
(
"${vcc.quota.payment.amount}"
)
private
String
vccQuotaPaymentAmount
;
public
Map
<
String
,
Object
>
convertParameterMap
(
Map
<
String
,
String
[]>
parameterMap
)
{
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
for
(
Map
.
Entry
<
String
,
String
[]>
entry:
parameterMap
.
entrySet
())
{
...
...
@@ -62,6 +71,11 @@ public class RuleEngineInterceptor implements HandlerInterceptor {
return
true
;
}
/**
* 处理风控审核参数
* @param requestMap HttpServletRequest请求参数Map
* @return
*/
public
Map
<
String
,
Object
>
handleRiskAudit
(
Map
<
String
,
Object
>
requestMap
)
{
Map
<
String
,
Object
>
bodyMap
=
new
HashMap
<>();
Map
<
String
,
Object
>
resultMap
=
new
HashMap
<>();
...
...
@@ -107,7 +121,7 @@ public class RuleEngineInterceptor implements HandlerInterceptor {
// vcc
String
callbackUrl
=
requestMap
.
get
(
"callbackUrl"
).
toString
();
if
(
callbackUrl
.
contains
(
"talos"
))
{
vccRiskAuthAmountCompletion
(
callbackUrl
,
bizChannel
,
uuid
,
bizNo
,
10000
,
true
);
vccRiskAuthAmountCompletion
(
callbackUrl
,
bizChannel
,
uuid
,
bizNo
,
vccAuditMount
,
vccAuditResult
);
}
// 一单一审现金贷
if
(
bizType
.
equals
(
"0"
))
{
...
...
@@ -131,7 +145,7 @@ public class RuleEngineInterceptor implements HandlerInterceptor {
// vcc支付限额审核, sceneId=12
if
(
bizType
.
equals
(
"8"
)
&&
sceneId
.
equals
(
"12"
))
{
bodyMap
.
put
(
"auditResult"
,
true
);
// true-允许使用额度支付, false-不允许使用额度支付
bodyMap
.
put
(
"quotaPaymentAmount"
,
"10000"
);
// quotaPaymentAmount
bodyMap
.
put
(
"quotaPaymentAmount"
,
vccQuotaPaymentAmount
);
// quotaPaymentAmount
}
// 提前结清审核,如果渠道不在apollo配置里,则审核拒绝
if
(
sceneId
.
equals
(
"14"
))
{
...
...
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