Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xiaomai-cloud-class-web
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xiaomai-cloud-class
xiaomai-cloud-class-web
Commits
25c8c6e7
Commit
25c8c6e7
authored
Aug 05, 2021
by
maolipeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:进入企微回放
parent
535d0fda
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
2 deletions
+21
-2
src/common/js/wechatApi.js
+17
-1
src/modules/course-manage/components/LiveCourseList.jsx
+4
-1
No files found.
src/common/js/wechatApi.js
View file @
25c8c6e7
...
...
@@ -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
);
//错误处理
}
});
});
...
...
src/modules/course-manage/components/LiveCourseList.jsx
View file @
25c8c6e7
...
...
@@ -800,7 +800,10 @@ class LiveCourseList extends React.Component {
console
.
log
(
"进入企微回放"
)
})
.
catch
((
err
)
=>
{
console
.
log
(
"进入企微回放失败"
,
err
)
Modal
.
warning
({
title
:
'提示'
,
content
:
err
,
});
})
return
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment