From b43855666cf539f3392a6f8eec219cbab88a9bc8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=87=89=E5=87=89?= Date: Mon, 15 Oct 2018 11:12:22 +0800 Subject: [PATCH] =?UTF-8?q?laosiji=EF=BC=9A=E4=BF=AE=E5=A4=8D=E6=A0=87?= =?UTF-8?q?=E9=A2=98=E4=B8=BA=E7=A9=BA=E9=97=AE=E9=A2=98=20(#889)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 增加:有品-每日上新 * 修复 summary 字段错误 * 将 youpin 模块转移至 mi 目录下,并更新文档 * hotfix: 修复标题为空问题 标题为空时取描述作为标题 --- routes/laosiji/hot.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/routes/laosiji/hot.js b/routes/laosiji/hot.js index e4d84e156..f81ce8b18 100644 --- a/routes/laosiji/hot.js +++ b/routes/laosiji/hot.js @@ -12,10 +12,10 @@ module.exports = async (ctx) => { title: '老司机-24小时热门', link: 'http://www.laosiji.com/new_web/index.html', description: '老司机-24小时热门', - item: data.map(({ title, id, imageInfo, createtime }) => ({ - title, + item: data.map(({ title, description, id, imageInfo, createtime }) => ({ + title: title === '' ? description : title, link: `http://www.laosiji.com/thread/${id}.html`, - description: ``, + description: `${description}`, pubDate: new Date(createtime).toUTCString(), })), };