Commit 978d7c33 authored by Hsinli's avatar Hsinli

Merge branch 'master' of t-git.51gjj.com:fangbin/51business

parents 065b79bd 4756d15c
Pipeline #14331 passed with stage
in 46 seconds
......@@ -341,7 +341,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 });
......@@ -350,7 +350,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;
......@@ -375,6 +375,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