Commit e4057a36 authored by Chen Jiping's avatar Chen Jiping

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

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