Commit 6b28adbc authored by Hsinli's avatar Hsinli

add

parent e3684963
Pipeline #13464 passed with stage
in 20 seconds
......@@ -9,7 +9,11 @@ class BlacklistController extends Controller {
*/
async getBlacklistReport() {
const { ctx } = this;
let ret = await ctx.service.credit.blacklist.getReport();
let inputParams = ctx.params;
if (!inputParams.report_id) {
ctx.failed('empty report id');
}
let ret = await ctx.service.credit.blacklist.getReport(inputParams.report_id);
ctx.success(ret);
}
......
......@@ -7,7 +7,7 @@ module.exports = app => {
router.get('third', '/history/:type', 'credit.order.getRecord');
//我的信用-黑名单报告
router.get('third', '/blacklist/report', 'credit.blacklist.getBlacklistReport');
router.get('third', '/blacklist/report/:report_id', 'credit.blacklist.getBlacklistReport');
//我的信用-个人通话风险
......
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