Commit 660260b4 authored by Hsinli's avatar Hsinli

addd

parent f20ea4cd
Pipeline #14083 passed with stage
in 10 seconds
...@@ -316,11 +316,15 @@ class BlacklistService extends Service { ...@@ -316,11 +316,15 @@ class BlacklistService extends Service {
*/ */
async createReport(inputParams, blacklistInfo) { async createReport(inputParams, blacklistInfo) {
const { ctx } = this; const { ctx } = this;
let birth = parseInt(inputParams.id_card.substring(6, 10));
let age = parseInt(moment().format('YYYY')) - birth;
let reportData = { let reportData = {
name: inputParams.name, name: inputParams.name,
id_card: inputParams.id_card, id_card: inputParams.id_card,
phone: inputParams.phone, phone: inputParams.phone,
age: '', age: age,
city: '', city: '',
blacklist_of_internet_loans: blacklistInfo.pre_loan_risk.blacklist_of_internet_loans, blacklist_of_internet_loans: blacklistInfo.pre_loan_risk.blacklist_of_internet_loans,
blacklist_of_court_dishonesty: blacklistInfo.pre_loan_risk.blacklist_of_court_dishonesty, blacklist_of_court_dishonesty: blacklistInfo.pre_loan_risk.blacklist_of_court_dishonesty,
......
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