好友
阅读权限10
听众
最后登录1970-1-1
|
{"code":"0","data":{"data":[],"showExamImgUrl":false,"showType":0,"totalCount":0},"msg":"成功"}
{"code":"0","data":{"naireId":"","needAppraise":false,"nextSectionId":"167f97768c7446b8abe987831a96d5b41-2"},"msg":"成功"}
请教大神,这样的怎么刷课,继续教育那个6月1号系统更新了,现在软件都登陆不上了。看了代码,毕竟是小白,没看懂需要怎么改,求教
var actualInterval;//定时参数,播放时自动自增,暂停时销毁
function initLog(){
businessLog(attrset.signId, attrset.courseId, "5", "3", attrset.sectionId, "4", 1,1);
}
/***
* 记录实际学习时间
*/
function addActualTime(){
attrset.actualLearnTime++;
}
/***
* 播放事件监听
*/
function playHandler(){
console.log("playHandler");
if(typeof(actualInterval)=='undefined'){
actualInterval=window.setInterval("addActualTime()",1000);
}
h5Play();
}
/***
* 暂停事件监听
*/
function pauseHandler(){
console.log("pauseHandler");
if(typeof(actualInterval)!='undefined'){
window.clearInterval(actualInterval);
actualInterval=undefined;
}
h5Pause();
}
function sendLog(){
var stayTime = new Date().getTime() - startTime;
businessLog(attrset.signId, attrset.courseId, "5", "3", attrset.sectionId, "4", stayTime,attrset.actualLearnTime);
}
function leavePage(viewTime) {
var time = viewTime;
if (time <= attrset.lastPlayTime) {
time = attrset.lastPlayTime;
}
navigator.sendBeacon("/videoPlay/endPlay", "recordId="+attrset.recordId+"&time="+time+"&studyCode="+attrset.studyCode+"&viewTime="+viewTime);
$.ajax({
url: "/videoPlay/endPlay",
async:true,
data: {recordId: attrset.recordId, time: time, studyCode: attrset.studyCode, viewTime: viewTime},
success: function (data) {
}
});
}
function getPlayTime(){
return attrset.currentTime;
} |
|