Commit 9c754696 authored by 李尚科's avatar 李尚科

callrisk fix

parent 7a3e8c66
Pipeline #14470 passed with stage
in 8 seconds
......@@ -58,8 +58,15 @@ class ApplyService extends Service {
return ret;
}
/**
* 进入个人通话查询页面
*/
async callriskInit() {
const { ctx } = this;
if (!ctx.userId) {
ctx.failed('登录异常');
}
let ret = {
have_be_pay_order: false,
order_id: null,
......@@ -341,7 +348,7 @@ class ApplyService extends Service {
const type = TypeConfig['callrisk'];//个人通话类型
let report_id = null;
//数盒魔方三要素校验
// await ctx.service.credit.callrisk.checkThreeElements(input);
await ctx.service.credit.callrisk.checkThreeElements(input);
// await ctx.service.credit.common.shuhemofangCheck('callrisk', input);
//判断用户当前三要素是否是二次查询未支付订单
......@@ -433,14 +440,14 @@ class ApplyService extends Service {
let orderFilter = {
arrtibutes: ['id', 'name', 'id_card'],
where: {
user_id: ctx.userId,
user_id: user_id,
state: '已支付',
type: 2,
type: type,
valid: 1
}
}
let orderInfo = await ctx.prometheusModel.CreditOrder.findOne(orderFilter);
if (orderInfo !== null && (inputParams.name !== orderInfo.name || inputParams.id_card !== orderInfo.id_card)) {
if (orderInfo !== null && (name !== orderInfo.name || id_card !== orderInfo.id_card)) {
ctx.failed('仅供本人查询使用,无法查询其他人信息');
}
......
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