Commit abf698b2 authored by 黎博's avatar 黎博

update

parent d3440ce7
Pipeline #869 failed with stages
...@@ -31,6 +31,15 @@ public class RuleEngineInterceptor implements HandlerInterceptor { ...@@ -31,6 +31,15 @@ public class RuleEngineInterceptor implements HandlerInterceptor {
@Value("${early.settle.channel}") @Value("${early.settle.channel}")
private String earlySettleChannel; 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) { public Map<String, Object> convertParameterMap(Map<String, String[]> parameterMap) {
Map<String, Object> map = new HashMap<>(); Map<String, Object> map = new HashMap<>();
for (Map.Entry<String, String[]> entry: parameterMap.entrySet()) { for (Map.Entry<String, String[]> entry: parameterMap.entrySet()) {
...@@ -62,6 +71,11 @@ public class RuleEngineInterceptor implements HandlerInterceptor { ...@@ -62,6 +71,11 @@ public class RuleEngineInterceptor implements HandlerInterceptor {
return true; return true;
} }
/**
* 处理风控审核参数
* @param requestMap HttpServletRequest请求参数Map
* @return
*/
public Map<String, Object> handleRiskAudit(Map<String, Object> requestMap) { public Map<String, Object> handleRiskAudit(Map<String, Object> requestMap) {
Map<String, Object> bodyMap = new HashMap<>(); Map<String, Object> bodyMap = new HashMap<>();
Map<String, Object> resultMap = new HashMap<>(); Map<String, Object> resultMap = new HashMap<>();
...@@ -107,7 +121,7 @@ public class RuleEngineInterceptor implements HandlerInterceptor { ...@@ -107,7 +121,7 @@ public class RuleEngineInterceptor implements HandlerInterceptor {
// vcc // vcc
String callbackUrl = requestMap.get("callbackUrl").toString(); String callbackUrl = requestMap.get("callbackUrl").toString();
if (callbackUrl.contains("talos")) { if (callbackUrl.contains("talos")) {
vccRiskAuthAmountCompletion(callbackUrl, bizChannel, uuid, bizNo, 10000, true); vccRiskAuthAmountCompletion(callbackUrl, bizChannel, uuid, bizNo, vccAuditMount, vccAuditResult);
} }
// 一单一审现金贷 // 一单一审现金贷
if (bizType.equals("0")) { if (bizType.equals("0")) {
...@@ -131,7 +145,7 @@ public class RuleEngineInterceptor implements HandlerInterceptor { ...@@ -131,7 +145,7 @@ public class RuleEngineInterceptor implements HandlerInterceptor {
// vcc支付限额审核, sceneId=12 // vcc支付限额审核, sceneId=12
if (bizType.equals("8") && sceneId.equals("12")) { if (bizType.equals("8") && sceneId.equals("12")) {
bodyMap.put("auditResult", true); // true-允许使用额度支付, false-不允许使用额度支付 bodyMap.put("auditResult", true); // true-允许使用额度支付, false-不允许使用额度支付
bodyMap.put("quotaPaymentAmount", "10000"); // quotaPaymentAmount bodyMap.put("quotaPaymentAmount", vccQuotaPaymentAmount); // quotaPaymentAmount
} }
// 提前结清审核,如果渠道不在apollo配置里,则审核拒绝 // 提前结清审核,如果渠道不在apollo配置里,则审核拒绝
if (sceneId.equals("14")) { if (sceneId.equals("14")) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment