From eaf11f6e4139b35df77f3c6fec05fefe462c2166 Mon Sep 17 00:00:00 2001 From: SettingDust Date: Sun, 28 Oct 2018 01:58:43 +0800 Subject: [PATCH] Huya link&time fixed (#988) --- routes/huya/live.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/routes/huya/live.js b/routes/huya/live.js index ec5a82ac1..a0fc0961a 100644 --- a/routes/huya/live.js +++ b/routes/huya/live.js @@ -15,7 +15,7 @@ module.exports = async (ctx) => { items = [ { title: `${data.live_intro}`, - pubDate: new Date(data.rec_live_time).toUTCString(), + pubDate: new Date(data.rec_live_time * 1000).toUTCString(), guid: data.uid, link: data.game_liveLink, image: data.game_avatarUrl180, @@ -25,7 +25,7 @@ module.exports = async (ctx) => { ctx.state.data = { title: `${data.game_nick}的虎牙直播`, - link: url, + link: `https://huya.com/${id}`, item: items, }; };