Huya link&time fixed (#988)

This commit is contained in:
SettingDust 2018-10-28 01:58:43 +08:00 committed by DIYgod
parent 9e3b2b3aef
commit eaf11f6e41
1 changed files with 2 additions and 2 deletions

View File

@ -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,
};
};