diff --git a/lib/routes/coolapk/utils.js b/lib/routes/coolapk/utils.js index a9fe67348..9e38e0b00 100644 --- a/lib/routes/coolapk/utils.js +++ b/lib/routes/coolapk/utils.js @@ -83,13 +83,12 @@ const parseDongtai = async (item, ctx) => { const parseTuwen = async (item, ctx) => { const title = item.title; const pubdate = new Date(item.lastupdate * 1000).toUTCString(); - const itemUrl = item.shareUrl.split('?')[0]; const author = item.username; - const description = await ctx.cache.tryGet(itemUrl, async () => { + const description = await ctx.cache.tryGet(item.shareUrl, async () => { const result = await got({ method: 'get', - url: itemUrl, + url: item.shareUrl, headers: getHeaders(), }); @@ -104,7 +103,8 @@ const parseTuwen = async (item, ctx) => { title: title, description: description, pubDate: pubdate, - link: itemUrl, + link: item.shareUrl, + guid: item.shareUrl.split('?')[0], author: author, }; };