Commit 33e6ebb5 authored by 李尚科's avatar 李尚科

fix

parent accec00d
Pipeline #14788 passed with stage
in 37 seconds
......@@ -45,7 +45,7 @@ module.exports = app => {
allowNull: false,
},
maximum_active_call_number: {
type: INTEGER,
type: STRING,
allowNull: false,
},
maximum_active_call_city: {
......@@ -57,7 +57,7 @@ module.exports = app => {
allowNull: false,
},
maximum_passive_call_number: {
type: INTEGER,
type: STRING,
allowNull: false,
},
maximum_passive_call_city: {
......@@ -69,7 +69,7 @@ module.exports = app => {
allowNull: false,
},
maximum_call_time_number: {
type: INTEGER,
type: STRING,
allowNull: false,
},
maximum_call_time_city: {
......
......@@ -93,6 +93,10 @@ class CallriskService extends Service {
const city_active = R.sort(diff)(call_active.city_active).slice(0, 3);
call_active.city_active = JSON.stringify(city_active);
call_behavior.call_rank.silence_time_3day = call_behavior.silence_time_3day * 24 * 60;//转为分钟
call_behavior.call_rank.maximum_active_call_number = call_behavior.call_rank.maximum_active_call_number.substring(0, 3) + '****' + call_behavior.call_rank.maximum_active_call_number.substring(7, 11);//手机号(只展示前三位和后四位)
call_behavior.call_rank.maximum_passive_call_number = call_behavior.call_rank.maximum_passive_call_number.substring(0, 3) + '****' + call_behavior.call_rank.maximum_passive_call_number.substring(7, 11);//手机号(只展示前三位和后四位)
call_behavior.call_rank.maximum_call_time_number = call_behavior.call_rank.maximum_call_time_number.substring(0, 3) + '****' + call_behavior.call_rank.maximum_call_time_number.substring(7, 11);//手机号(只展示前三位和后四位)
const report_valid = await ctx.service.credit.order.getReportValid('callrisk', report_id);
let report = {
basics: { data: basics },
......@@ -536,7 +540,7 @@ class CallriskService extends Service {
let top_three_city_total_time = 0;
for (let i in call_most_city) {
const call_city = call_most_city[i];
top_three_city_total_time += call_city.call_time;
top_three_city_total_time += parseInt(call_city.call_time);
}
// for (let j in call_active.city_active) {
// const call = call_active.city_active[j];
......@@ -552,7 +556,7 @@ class CallriskService extends Service {
//通话行为解析
let call_behavior_array = ['较少', '稳定', '有利于',];
if (call_behavior.silence_count_3day > 3) {
call_behavior_array = ['较少', '稳定', '有利于',];
call_behavior_array = ['较多', '较大', '不利于',];
}
const call_behavior_msg = `您的静默时长、静默次数以及周期,占整体比例【${call_behavior_array[0]}】,通话活跃变动幅度【${call_behavior_array[1]}】,【${call_behavior_array[2]}】贷款机构对您的放贷评估`;
......@@ -678,10 +682,10 @@ class CallriskService extends Service {
const user_brief = yys_report_data.data.user_brief;
const report = {
report_no: '',
user_id: 12,
app_type_id: 12,
app_user_id: 12,
app_id: 12,
user_id: user_id || -51,
app_type_id: app_type_id || -51,
app_user_id: app_user_id || -51,
app_id: app_id || -51,
mobile: user_brief.mobile,
operator: user_brief.operator,
net_time: user_brief.net_time,
......
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