Commit ea6675dd by maolipeng

fix:进入企微直播间

parent 77b56557
......@@ -771,13 +771,27 @@ class LiveCourseList extends React.Component {
})
return
}
WechatApi.enterLiveRoom(item.livingId).then((res)=> {
console.log(res)
}).catch((err)=> {
Modal.warning({
title:"提示",
content: err
})
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)=> {
Modal.warning({
title:"提示",
content: err
})
})
}
})
return
}
......
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