Commit 78330d57 authored by Hsinli's avatar Hsinli

addd

parent 89e0690d
Pipeline #13715 passed with stage
in 29 seconds
...@@ -162,7 +162,7 @@ class ApplyService extends Service { ...@@ -162,7 +162,7 @@ class ApplyService extends Service {
let ret = { let ret = {
order_id: null, order_id: null,
report_id: null, report_id: null,
first: false,//首次通过三要素验证后:报告生成后,将无法查询其他人的报告 first: false,//首次通过三要素验证后弹框提示:报告生成后,将无法查询其他人的报告
second: false,//再次查询的是待支付中的订单 second: false,//再次查询的是待支付中的订单
} }
//验证码校验 //验证码校验
...@@ -181,17 +181,16 @@ class ApplyService extends Service { ...@@ -181,17 +181,16 @@ class ApplyService extends Service {
} }
//判断用户是否第一次三要素核验成功 //判断用户是否第一次三要素核验成功
let applyFilter = { let orderFilter = {
arrtibutes: ['id'],
where: { where: {
name: inputParams.name, user_id: ctx.userId,
phone: inputParams.phone,
id_card: inputParams.id_card,
type: 1, type: 1,
valid: 1 valid: 1
} }
} }
let applyInfo = await ctx.prometheusModel.CreditApply.findOne(applyFilter); let orderList = await ctx.prometheusModel.CreditOrder.findAll(orderFilter);
if (applyInfo === null) { if (orderList === undefined || orderList.length === 0) {
ret.first = true; ret.first = true;
} }
......
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