Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
5
51business
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
方斌
51business
Commits
eeb0a798
Commit
eeb0a798
authored
Sep 24, 2019
by
李尚科
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://t-git.51gjj.com/fangbin/51business
parents
4ca6fbf0
660260b4
Pipeline
#14086
passed with stage
in 41 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
blacklist.js
app/service/credit/blacklist.js
+6
-2
No files found.
app/service/credit/blacklist.js
View file @
eeb0a798
...
@@ -60,7 +60,7 @@ class BlacklistService extends Service {
...
@@ -60,7 +60,7 @@ class BlacklistService extends Service {
phone
:
reportData
.
phone
.
substring
(
0
,
3
)
+
'****'
+
reportData
.
phone
.
substring
(
7
,
11
),
//手机号(只展示前三位和后四位)
phone
:
reportData
.
phone
.
substring
(
0
,
3
)
+
'****'
+
reportData
.
phone
.
substring
(
7
,
11
),
//手机号(只展示前三位和后四位)
age
:
reportData
.
age
,
age
:
reportData
.
age
,
id_card
:
reportData
.
id_card
.
substring
(
0
,
3
)
+
'**********'
+
reportData
.
id_card
.
substring
(
15
,
18
),
//身份证号(只展示前四位和后四位)
id_card
:
reportData
.
id_card
.
substring
(
0
,
3
)
+
'**********'
+
reportData
.
id_card
.
substring
(
15
,
18
),
//身份证号(只展示前四位和后四位)
city
:
reportData
.
city
,
//城市(省-市)
city
:
reportData
.
city
||
'--'
,
//城市(省-市)
expire_time
:
moment
(
reportData
.
created_at
).
add
(
30
,
'days'
).
format
(
'YYYY-MM-DD'
),
//报告有效期为报告生成日期往后推30天
expire_time
:
moment
(
reportData
.
created_at
).
add
(
30
,
'days'
).
format
(
'YYYY-MM-DD'
),
//报告有效期为报告生成日期往后推30天
},
},
blacklist
:
{
blacklist
:
{
...
@@ -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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment