fix(route): 中南大学计算机学院通知 (#10444)
* fix(route): twreporter content * fix(route): 中南大学计算机学院通知
This commit is contained in:
parent
e3fa7026a9
commit
5428e35f03
|
|
@ -22,7 +22,7 @@ module.exports = async (ctx) => {
|
|||
const out = await Promise.all(
|
||||
list.map((item) => {
|
||||
const $ = cheerio.load(item);
|
||||
const address = new URL($('a').attr('href'), url);
|
||||
const address = new URL($('a').attr('href'), url).href;
|
||||
const title = $('a').text();
|
||||
const pubDate = $('span').text();
|
||||
return ctx.cache.tryGet(address, async () => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue