Commit 38740bfa by maolipeng

fix:进入企微回放

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