Commit ea6675dd by maolipeng

fix:进入企微直播间

parent 77b56557
......@@ -771,6 +771,18 @@ class LiveCourseList extends React.Component {
})
return
}
CourseService.getWorkWXLiveCourseDetail({
liveCourseId: item.liveCourseId,
}).then((res) => {
const {
courseState
} = res.result;
if (courseState === "FINISH") {
Modal.warning({
title:"刷新页面",
content:"该课程已结束,请查看回放"
})
} else {
WechatApi.enterLiveRoom(item.livingId).then((res)=> {
console.log(res)
}).catch((err)=> {
......@@ -779,6 +791,8 @@ class LiveCourseList extends React.Component {
content: err
})
})
}
})
return
}
if (item.startTime - Date.now() > 1800000) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment