Fix(route): fix coolapk/huati, err when item.shareUrl is undefined (#8860)

This commit is contained in:
Fatpandac 2022-01-23 03:56:22 +08:00 committed by GitHub
parent 4df468d36a
commit 6193097708
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -58,6 +58,8 @@ const parseDynamic = async (item, ctx) => {
const pubDate = new Date(item.lastupdate * 1000).toUTCString();
if (item.entityType === 'sponsorCard') {
return;
} else if (item.shareUrl === undefined) {
return;
}
const itemUrl = item.shareUrl.split('?')[0];
let description, title;