diff --git a/lib/routes/agefans/detail.js b/lib/routes/agefans/detail.js index 8f95576d9..c5ea62e85 100644 --- a/lib/routes/agefans/detail.js +++ b/lib/routes/agefans/detail.js @@ -4,7 +4,7 @@ const cheerio = require('cheerio'); module.exports = async (ctx) => { const response = await got({ method: 'get', - url: `https://www.agefans.tv/detail/${ctx.params.id}`, + url: `https://www.agefans.cc/detail/${ctx.params.id}`, }); const $ = cheerio.load(response.data); @@ -15,14 +15,14 @@ module.exports = async (ctx) => { .map((idx, item) => ({ title: $(item).text(), description: $(item).text(), - link: `https://www.agefans.tv${$(item).attr('href')}`, + link: `https://www.agefans.cc${$(item).attr('href')}`, })) .get(); items.reverse(); ctx.state.data = { title: `AGE动漫 - ${$('.detail_imform_name').text()}`, - link: `https://www.agefans.tv/detail/${ctx.params.id}`, + link: `https://www.agefans.cc/detail/${ctx.params.id}`, description: $('.detail_imform_desc_pre').text(), item: items, }; diff --git a/lib/routes/agefans/update.js b/lib/routes/agefans/update.js index b062210ff..c85bacbea 100644 --- a/lib/routes/agefans/update.js +++ b/lib/routes/agefans/update.js @@ -2,7 +2,7 @@ const got = require('@/utils/got'); const cheerio = require('cheerio'); module.exports = async (ctx) => { - const rootUrl = 'https://www.agefans.net'; + const rootUrl = 'https://www.agefans.cc'; const currentUrl = `${rootUrl}/update`; const response = await got({ method: 'get',