Fix ifanr (#874)

This commit is contained in:
Henry Wang 2018-10-14 09:32:46 +01:00 committed by DIYgod
parent 7881264a55
commit 8ee6dde313
1 changed files with 2 additions and 2 deletions

View File

@ -1,9 +1,9 @@
const axios = require('../../utils/axios');
const cheerio = require('cheerio');
let host = 'http://www.ifanr.com';
module.exports = async (ctx) => {
let host = 'http://www.ifanr.com';
if (ctx.params.channel) {
let channel = ctx.params.channel.toLowerCase();
channel = channel.split('-').join('/');