Commit 25c8c6e7 by maolipeng

fix:进入企微回放

parent 535d0fda
......@@ -180,7 +180,23 @@ export default class WechatApi {
if (res.err_msg === "replayLiving:ok") {
resolve(true)
} else {
reject(res.err_msg); //错误处理
let err = "进入回放失败"
if (res.err_msg === "replayLiving:fail invalid living id") {
err = "不合法的直播ID"
} else if (res.err_msg === "replayLiving:fail not allow to cross corp") {
err = "不可跨企业使用直播ID"
} else if (res.err_msg === "replayLiving:fail not allow to cross app") {
err = "不可跨应用使用直播ID"
} else if (res.err_msg === "replayLiving:fail living has no replay") {
err = "不存在直播回放"
} else if (res.err_msg === "replayLiving:fail replay is beging creating") {
err = "正在直播中,或回放正在生成中,稍后观看回放"
} else if (res.err_msg === "replayLiving:fail create replay failed") {
err = "回放创建失败"
} else if (res.err_msg === "replayLiving:fail invalid parameter") {
err = "参数不合法"
}
reject(err); //错误处理
}
});
});
......
......@@ -800,7 +800,10 @@ class LiveCourseList extends React.Component {
console.log("进入企微回放")
})
.catch((err)=> {
console.log("进入企微回放失败",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