From 8ded6bd731c5beb190dc3c58d84ff95bbebdd826 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B8=AF=E5=B3=B6=E5=B0=8F=E5=8F=94=E5=AD=90?= Date: Sun, 25 Sep 2022 20:47:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=B1=86=E7=93=A3=E6=A6=9C?= =?UTF-8?q?=E5=8D=95=E9=97=AE=E9=A2=98=20(#10887)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/v2/douban/other/weekly_best.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/v2/douban/other/weekly_best.js b/lib/v2/douban/other/weekly_best.js index 3f7eae60f..3f0289787 100644 --- a/lib/v2/douban/other/weekly_best.js +++ b/lib/v2/douban/other/weekly_best.js @@ -28,11 +28,13 @@ module.exports = async (ctx) => { link: `https://m.douban.com/subject_collection/${type}`, description: infoResponse.data.description, - item: data.map(({ title, info, cover, url, rating, year, release_date, null_rating_reason, description }) => { + item: data.map(({ title, info, cover, cover_url, url, rating, year, release_date, null_rating_reason, description }) => { const release = `${year}.${release_date}`; const rate = rating ? `${rating.value.toFixed(1)}分` : null_rating_reason; - - description = `标题:${title}
影片信息:${info}
上映日期:${release}
评分:${rate}

${description}

`; + if (cover && cover.url) { + cover_url = cover.url; + } + description = `标题:${title}
影片信息:${info}
上映日期:${release}
评分:${rate}

${description}

`; return { title,