mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-09 06:30:40 +08:00
chore: bump got from 9.x to 10.x (#3875)
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
const got = require('@/utils/got');
|
||||
const cheerio = require('cheerio');
|
||||
const dayjs = require('dayjs');
|
||||
const queryString = require('query-string');
|
||||
|
||||
module.exports = async (ctx) => {
|
||||
const from = ctx.params.from.toUpperCase();
|
||||
@@ -14,10 +15,10 @@ module.exports = async (ctx) => {
|
||||
const response = await got({
|
||||
method: 'get',
|
||||
url,
|
||||
params: {
|
||||
searchParams: queryString.stringify({
|
||||
pid: 'website',
|
||||
c: 'flexweb',
|
||||
},
|
||||
}),
|
||||
});
|
||||
|
||||
const $ = cheerio.load(response.data);
|
||||
|
||||
Reference in New Issue
Block a user