1
0
mirror of https://gitee.com/koogua/course-tencent-cloud.git synced 2025-07-17 13:46:21 +08:00

优化点播直播部分代码

This commit is contained in:
xiaochong0302 2020-11-12 20:50:01 +08:00
parent 3ce6897de1
commit a59ab3c6d8
3 changed files with 4 additions and 6 deletions

View File

@ -66,7 +66,7 @@ layui.use(['jquery', 'helper'], function () {
data: {
plan_id: planId,
request_id: requestId,
interval: intervalTime,
interval_time: intervalTime,
}
});
}

View File

@ -6,7 +6,6 @@ layui.use(['jquery', 'helper'], function () {
var interval = null;
var intervalTime = 15000;
var userId = window.user.id;
var chapterId = $('input[name="chapter.id"]').val();
var planId = $('input[name="chapter.plan_id"]').val();
var learningUrl = $('input[name="chapter.learning_url"]').val();
var requestId = helper.getRequestId();
@ -40,10 +39,9 @@ layui.use(['jquery', 'helper'], function () {
type: 'POST',
url: learningUrl,
data: {
request_id: requestId,
chapter_id: chapterId,
plan_id: planId,
interval: intervalTime,
request_id: requestId,
interval_time: intervalTime,
}
});
}

View File

@ -84,7 +84,7 @@ layui.use(['jquery', 'helper'], function () {
data: {
plan_id: planId,
request_id: requestId,
interval: intervalTime,
interval_time: intervalTime,
position: player.currentTime(),
}
});