修改上报时长接口

This commit is contained in:
sunhonglai
2025-04-21 11:10:21 +08:00
parent e031dcd935
commit ff908554fd

View File

@@ -780,7 +780,7 @@
this.$nextTick(function(){
if(this.contentData.progressVideo){
if (r.contentType == 10) {
this.$refs.myVideoPlayer.updateProgressByClickBar2(this.contentData.lastStudyTime,this.contentData.progressVideo);
}
@@ -1397,6 +1397,7 @@
//对已学习的内容进行比对,重要的字段, 学习内容id在后缀的
let playIndex = -1;
this.contentList.forEach((con, conIdx) => {
con.progressVideo = con.progressVideo || 0;
result.contentStudys.forEach((scon, sconIdx) => {
if (scon.contentId == con.id) {
//定位显示的内容
@@ -1409,7 +1410,7 @@
}
}
con.lastStudyTime = scon.lastStudyTime;
con.progressVideo = scon.progressVideo;
con.progressVideo = scon.progressVideo || 0;
//以下判断是为了兼容之前的问题,学习状态
if (scon.status) {
con.status = scon.status;