Update gallery.js

This commit is contained in:
小虎故洞
2021-02-15 21:28:11 +08:00
committed by GitHub
parent 5a7e3c7673
commit 68e1c099ec
+1 -2
View File
@@ -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,