diff --git a/lib/routes/bing/index.js b/lib/routes/bing/index.js index 11873fc1a..c038f4047 100644 --- a/lib/routes/bing/index.js +++ b/lib/routes/bing/index.js @@ -3,7 +3,7 @@ const got = require('@/utils/got'); module.exports = async (ctx) => { const response = await got({ method: 'get', - baseURL: 'https://cn.bing.com', + baseUrl: 'https://cn.bing.com', url: '/HPImageArchive.aspx', params: { format: 'js', diff --git a/lib/routes/konachan/post_popular_recent.js b/lib/routes/konachan/post_popular_recent.js index 4861ac393..a8a3be9c3 100644 --- a/lib/routes/konachan/post_popular_recent.js +++ b/lib/routes/konachan/post_popular_recent.js @@ -3,11 +3,11 @@ const got = require('@/utils/got'); module.exports = async (ctx) => { const { period = '1d' } = ctx.params; - const baseURL = ctx.path.startsWith('/konachan.net') ? 'https://konachan.net' : 'https://konachan.com'; + const baseUrl = ctx.path.startsWith('/konachan.net') ? 'https://konachan.net' : 'https://konachan.com'; const response = await got({ method: 'get', - baseURL, + baseUrl, url: '/post/popular_recent.json', params: { period, @@ -27,7 +27,7 @@ module.exports = async (ctx) => { ctx.state.data = { title: `${title} - Konachan Anime Wallpapers`, - link: `${baseURL}/post/popular_recent`, + link: `${baseUrl}/post/popular_recent`, item: posts.map((post) => { const content = (url) => { if (url.startsWith('//')) { @@ -38,7 +38,7 @@ module.exports = async (ctx) => { result += `source`; } if (post.parent_id) { - result += `parent`; + result += `parent`; } return result; }; @@ -49,7 +49,7 @@ module.exports = async (ctx) => { title: post.tags, id: `${ctx.path}#${post.id}`, guid: `${ctx.path}#${post.id}`, - link: `${baseURL}/post/show/${post.id}`, + link: `${baseUrl}/post/show/${post.id}`, author: post.author, published: new Date(created_at).toISOString(), pubDate: new Date(created_at).toUTCString(), diff --git a/lib/routes/miui/index.js b/lib/routes/miui/index.js index aec882947..0019ca5de 100644 --- a/lib/routes/miui/index.js +++ b/lib/routes/miui/index.js @@ -11,7 +11,7 @@ module.exports = async (ctx) => { const response = await got({ method: 'get', - baseURL: 'http://update.miui.com', + baseUrl: 'http://update.miui.com', url: '/updates/miota-fullrom.php', params: { d: device, diff --git a/lib/routes/universities/njust/gs/index.js b/lib/routes/universities/njust/gs/index.js index 4c8a12d50..ca87f6010 100644 --- a/lib/routes/universities/njust/gs/index.js +++ b/lib/routes/universities/njust/gs/index.js @@ -6,10 +6,10 @@ const map = new Map([[1, { title: '南京理工大学研究生院 -- 通知公 module.exports = async (ctx) => { const type = Number.parseInt(ctx.params.type); const id = map.get(type).id; - const baseURL = 'http://gs.njust.edu.cn'; + const baseUrl = 'http://gs.njust.edu.cn'; const res = await got({ method: 'get', - url: baseURL + id + '/list.htm', + url: baseUrl + id + '/list.htm', headers: { Referer: 'https://gs.njust.edu.cn/', }, @@ -28,7 +28,7 @@ module.exports = async (ctx) => { return { title: item.find('a').text(), - link: `${baseURL + $(item.find('a')).attr('href')}`, + link: `${baseUrl + $(item.find('a')).attr('href')}`, pubDate: new Date(item.find('.Article_PublishDate').text()).toUTCString(), }; })