fix: xjtu dean url (#4086)

This commit is contained in:
hoilc 2020-02-27 00:38:04 +08:00 committed by GitHub
parent bb0369e45d
commit 84a710fdfc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ module.exports = async (ctx) => {
const $ = cheerio.load(item);
const title = $('a');
const link = new URL(title.attr('href'), base);
const link = new URL(title.attr('href'), base).href;
const cache = await ctx.cache.get(link);
if (cache) {