Skip to content

Commit

Permalink
fix(route): douyin live (#13227)
Browse files Browse the repository at this point in the history
  • Loading branch information
TonyRL authored Sep 6, 2023
1 parent fa27a51 commit 0dd7824
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/v2/douyin/live.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,9 @@ module.exports = async (ctx) => {
}

const roomInfo = renderData.data.data[0];
const nickname = roomInfo.owner.nickname;
const userAvatar = roomInfo.owner.avatar_thumb.url_list[0];
const roomOwner = renderData.data.user;
const nickname = roomOwner.nickname;
const userAvatar = roomOwner.avatar_thumb.url_list[0];

const items = [];
if (roomInfo.id_str) {
Expand All @@ -60,7 +61,7 @@ module.exports = async (ctx) => {
} else if (roomInfo.status === 4) {
items.push({
title: `当前直播已结束,期待下一场:${roomInfo.title}`,
link: `https://www.douyin.com/user/${roomInfo.owner.sec_uid}`,
link: `https://www.douyin.com/user/${roomOwner.sec_uid}`,
author: nickname,
guid: roomInfo.id_str,
});
Expand Down

0 comments on commit 0dd7824

Please sign in to comment.