Commit e4057a36 authored by Chen Jiping's avatar Chen Jiping

fix:修复两次断线恢复异常问题

parent 80f63d1c
...@@ -237,9 +237,11 @@ class PlayView { ...@@ -237,9 +237,11 @@ class PlayView {
$(".total-time").empty(); $(".total-time").empty();
$(".total-time").append(totalTime); $(".total-time").append(totalTime);
if(ROLE == 'tea'){
teaUserAspect.totalTime = video.duration; teaUserAspect.totalTime = video.duration;
cw.storeAspect(teaUserAspect); cw.storeAspect(teaUserAspect);
}
clearInterval(i); clearInterval(i);
} }
...@@ -321,7 +323,7 @@ function recoverPage(aspect) { ...@@ -321,7 +323,7 @@ function recoverPage(aspect) {
$(".hello-container").hide(); $(".hello-container").hide();
const stuAspect = aspect.user_aspect && JSON.parse(aspect.user_aspect); const stuAspect = aspect.user_aspect && JSON.parse(aspect.user_aspect);
console.log(aspect);
if (stuAspect) { if (stuAspect) {
stuUserAspect = stuAspect; stuUserAspect = stuAspect;
......
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