fix(route): pianyuan (#10483)

This commit is contained in:
Tony 2022-08-15 12:45:24 -05:00 committed by GitHub
parent 0d91969443
commit d2b1df9eca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@ module.exports = async (ctx) => {
await Promise.all(
searchLinks.map(async (e) => {
const link = new URL(e, link_base);
const link = new URL(e, link_base).href;
const single = await ctx.cache.tryGet(link, async () => {
const res = await utils.request(link, ctx.cache);
const content = cheerio.load(res.data);

View File

@ -10,7 +10,7 @@ const ProcessFeed = async (list, cache) => {
const items = await Promise.all(
list.map(async (e) => {
const link = new URL(e, link_base);
const link = new URL(e, link_base).href;
const single = await cache.tryGet(link, async () => {
const response = await request(link, cache);
const content = cheerio.load(response.data);