fix(route): pianyuan (#10483)
This commit is contained in:
parent
0d91969443
commit
d2b1df9eca
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue