Commit 1a2d36c3 authored by 李尚科's avatar 李尚科

fix

parent 476dca1d
Pipeline #14759 passed with stage
in 34 seconds
......@@ -70,7 +70,7 @@ class CallriskService extends Service {
const { ctx } = this;
const basics = await ctx.prometheusModel.CreditCallriskReport.one({ where: { id: report_id } });
let basics = await ctx.prometheusModel.CreditCallriskReport.one({ where: { id: report_id } });
if (!basics || !basics.id) {
ctx.failed('error report_id');
}
......@@ -81,6 +81,9 @@ class CallriskService extends Service {
const call_behavior = await this.getCallBehavior(report_id);
//订单是否在有效期内
const net_time = basics.net_time;
basics.net_time = (net_time / 30).toFixed() + '月' + net_time % 30 + '天';
basics.mobile = basics.mobile.substring(0, 3) + '****' + basics.mobile.substring(7, 11);//手机号(只展示前三位和后四位)
const report_valid = await ctx.service.credit.order.getReportValid('callrisk', report_id);
let report = {
basics: { data: basics },
......
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