mirror of
https://github.com/PlayEdu/frontend.git
synced 2025-07-19 20:19:40 +08:00
视频播放以及播放记录上传优化
This commit is contained in:
parent
56cc7ac3da
commit
4703e78c02
@ -12,7 +12,7 @@ export function playUrl(courseId: number, hourId: number) {
|
|||||||
|
|
||||||
// 记录学员观看时长
|
// 记录学员观看时长
|
||||||
export function record(courseId: number, hourId: number, duration: number) {
|
export function record(courseId: number, hourId: number, duration: number) {
|
||||||
return client.get(`/api/v1/course/${courseId}/hour/${hourId}/record`, {
|
return client.post(`/api/v1/course/${courseId}/hour/${hourId}/record`, {
|
||||||
duration,
|
duration,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user