mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-10-29 07:27:22 +08:00
Update gallery.js
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
const got = require('@/utils/got');
|
||||
const cheerio = require('cheerio');
|
||||
|
||||
// 发起 HTTP GET 请求
|
||||
module.exports = async (ctx) => {
|
||||
// 传入参数
|
||||
const nsfw = String(ctx.params.nsfw);
|
||||
@@ -12,7 +11,7 @@ module.exports = async (ctx) => {
|
||||
if (nsfw === '1') {
|
||||
url = `https://faexport.spangle.org.uk/user/${username}/gallery.rss`;
|
||||
}
|
||||
|
||||
// 发起 HTTP GET 请求
|
||||
const response = await got({
|
||||
method: 'get',
|
||||
url: url,
|
||||
|
||||
Reference in New Issue
Block a user