Commit 4756d15c authored by 李尚科's avatar 李尚科

callrisk fix

parent c16389ec
Pipeline #14328 passed with stage
in 38 seconds
......@@ -339,7 +339,7 @@ class ApplyService extends Service {
let report_id = null;
//数盒魔方三要素校验
// await ctx.service.credit.callrisk.checkThreeElements(input);
// await ctx.service.credit.common.shuhemofangCheck('callrisk', input);
await ctx.service.credit.common.shuhemofangCheck('callrisk', input);
//判断用户当前三要素是否是二次查询未支付订单
const check_second_ret = await this.checkSecond({ name, phone, id_card });
......@@ -348,7 +348,7 @@ class ApplyService extends Service {
}
//生成订单
const order_data = { type, name, phone, id_card };
const order_data = { type, name, phone, id_card, user_id, app_type_id, app_user_id, app_id };
const order = await ctx.service.credit.order.createOrder(order_data);
const order_id = order.id;
......@@ -373,6 +373,7 @@ class ApplyService extends Service {
}
const order_no = await ctx.service.credit.common.getOrdertNo('callrisk', order_id);
await ctx.prometheusModel.CreditOrder.update({ order_no, apply_id: apply.id }, { where: { id: order_id } });
return { order_id, report_id, first: check_second_ret.first, second: check_second_ret.second, order_sn };
}
......
This diff is collapsed.
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