Commit d87e6265 authored by 李尚科's avatar 李尚科

fix

parent 4ebf7fea
Pipeline #14817 passed with stage
in 6 seconds
......@@ -71,7 +71,7 @@ class CallriskService extends Service {
const { ctx } = this;
let basics = await ctx.prometheusModel.CreditCallriskReport.one({ where: { id: report_id, user_id: ctx.userId } });
let basics = await ctx.prometheusModel.CreditCallriskReport.one({ where: { id: report_id } });
if (!basics || !basics.id) {
ctx.failed('error report_id');
}
......@@ -423,6 +423,9 @@ class CallriskService extends Service {
if (court_call_count >= 1) {
call_type_score += court_call_count * 5;
}
if(call_type_score > 30){
call_type_score = 30;
}
if (collection_call_count >= 1) {
call_type_score += collection_call_count * 10;
}
......
......@@ -314,13 +314,13 @@ class CommonService extends Service {
async noticeShuhemofang(status) {
const { ctx } = this;
//异常情况
if (status === '2') {
if (status == '2') {
ctx.failed('手机号已实名,身份证姓名均不匹配,请重新输入');
}
if (status === '3') {
if (status == '3') {
ctx.failed('手机号已实名,姓名不匹配,请重新输入');
}
if (status === '4') {
if (status == '4') {
ctx.failed('手机号已实名,身份证不匹配,请重新输入');
}
//未知情况
......@@ -361,7 +361,7 @@ class CommonService extends Service {
}
}
if (history.in) {
await this.noticeShuhemofang(Number(history.detail.status));
await this.noticeShuhemofang(history.detail.status);
} else {
if (shmfList.length >= 5) {
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