课程学习pingAPI请求

This commit is contained in:
禺狨
2023-03-27 16:08:59 +08:00
parent b45c7932ce
commit 7afb99751f
2 changed files with 6 additions and 0 deletions

View File

@@ -74,6 +74,7 @@ export const VideoModel: React.FC<PropInterface> = ({
if (duration - myRef.current >= 10 || isEnd === true) {
setPlayDuration(duration);
course.record(cid, id, duration).then((res: any) => {});
course.playPing(cid, id).then((res: any) => {});
}
};