@ -98,7 +98,6 @@ const HVideo: FC<HVideoOptions> = (opt: HVideoOptions) => {
Taro.useUnload(() => {
unique_ident.put(undefined, currentTime)
unique_ident.remove()
unique_ident.upload().then()
})
@ -33,6 +33,7 @@ const Course: FC<Props> = ({id, courseId, preview, curEnd}) => {
async function onEnded() {
const startRecording = unique_ident.get()
startRecording && await curriculum.curEnd(courseId, id, {...startRecording, duration: data?.duration!}) // 结束
if (testId) {
if (preview) { // 预览