浏览代码

fix 未开播

he2802 3 年之前
父节点
当前提交
b6cbdc42f2
共有 1 个文件被更改,包括 7 次插入2 次删除
  1. 7 2
      pages3/polyv/detail.vue

+ 7 - 2
pages3/polyv/detail.vue

@@ -556,10 +556,15 @@ export default {
 			  this.timer = setInterval(this.timeEventLiving, 1000); //定时器
 		    }
 		    if (status === 'end') {
+				if(this.livePlay){
+					//只有播放过的结束才提交,避免未开播触发结束
+					this.postStudyRecord(1);
+				}
+				 console.log('结束直播');
 				this.livePlay = false
 		      // 未开始
-		      console.log('结束直播');
-			  this.postStudyRecord(1);
+		     
+			  
 		    }
 		},
 		closePlv(){