From 49061afdc8bade78980a746eb97364faae50a90f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A6=BA=E7=8B=A8?= <18119604035@163.com> Date: Mon, 27 Mar 2023 09:45:15 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=86=E9=A2=91=E6=92=AD=E6=94=BE=E6=AF=8F10?= =?UTF-8?q?s=E5=B7=AE=E5=80=BC=E4=B8=8A=E4=BC=A0=E8=A7=82=E7=9C=8B?= =?UTF-8?q?=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/course/compenents/video.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/course/compenents/video.tsx b/src/pages/course/compenents/video.tsx index 5357e4e..2965e51 100644 --- a/src/pages/course/compenents/video.tsx +++ b/src/pages/course/compenents/video.tsx @@ -66,7 +66,7 @@ export const VideoModel: React.FC = ({ }; const playTimeUpdate = (duration: number, isEnd: boolean) => { - if (duration >= 10 || isEnd === true) { + if (duration - playDuration >= 10 || isEnd === true) { setPlayDuration(duration); course.record(cid, id, duration).then((res: any) => {}); }