Fix ifanr (#874)

This commit is contained in:
Henry Wang
2018-10-14 16:32:46 +08:00
committed by DIYgod
parent 7881264a55
commit 8ee6dde313
+2 -2
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('/');