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
985479c0
Commit
985479c0
authored
Sep 04, 2019
by
Hsinli
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of t-git.51gjj.com:fangbin/51business
parents
8b47714e
1c2df9de
Pipeline
#13326
passed with stage
in 23 seconds
Changes
3
Pipelines
1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
244 additions
and
0 deletions
+244
-0
callrisk.js
app/controller/credit/callrisk.js
+21
-0
credit.js
app/router/credit.js
+3
-0
callrisk.js
app/service/credit/callrisk.js
+220
-0
No files found.
app/controller/credit/callrisk.js
0 → 100644
View file @
985479c0
'use strict'
;
const
Controller
=
require
(
'egg'
).
Controller
;
class
CallriskController
extends
Controller
{
/**
* 获取黑名单报告
*/
async
getCallriskReport
()
{
const
{
ctx
}
=
this
;
let
ret
=
await
ctx
.
service
.
credit
.
callrisk
.
getReport
();
ctx
.
success
(
ret
);
}
}
module
.
exports
=
CallriskController
;
app/router/credit.js
View file @
985479c0
...
...
@@ -8,5 +8,8 @@ module.exports = app => {
router
.
get
(
'third'
,
'/blacklist/report'
,
'credit.blacklist.getBlacklistReport'
);
//我的信用-个人通话风险
router
.
get
(
'/callrisk/report'
,
'credit.callrisk.getCallriskReport'
);
};
app/service/credit/callrisk.js
0 → 100644
View file @
985479c0
This diff is collapsed.
Click to expand it.
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