Commit 38740bfa by maolipeng

fix:进入企微回放

parent 25c8c6e7
......@@ -181,6 +181,7 @@ export default class WechatApi {
resolve(true)
} else {
let err = "进入回放失败"
console.log(res.err_msg)
if (res.err_msg === "replayLiving:fail invalid living id") {
err = "不合法的直播ID"
} else if (res.err_msg === "replayLiving:fail not allow to cross corp") {
......
......@@ -795,6 +795,13 @@ class LiveCourseList extends React.Component {
}
handleViewPlayBack = (item) => {
if (item.thirdPartType === "WECHAT") {
if (!isWorkWx()) {
Modal.warning({
title:"提示",
content:"请使用企业微信进入回放"
})
return
}
WechatApi.replayLiving(item.livingId)
.then((res)=> {
console.log("进入企微回放")
......
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