fix /issues/28573

PCqiandao
harry 5 years ago
parent b5ee7314b3
commit b9476a4a23

@ -13577,6 +13577,21 @@
"resolved": "http://registry.npm.taobao.org/q/download/q-1.5.1.tgz", "resolved": "http://registry.npm.taobao.org/q/download/q-1.5.1.tgz",
"integrity": "sha1-fjL3W0E4EpHQRhHxvxQQmsAGUdc=" "integrity": "sha1-fjL3W0E4EpHQRhHxvxQQmsAGUdc="
}, },
"qr.js": {
"version": "0.0.0",
"resolved": "https://registry.npm.taobao.org/qr.js/download/qr.js-0.0.0.tgz",
"integrity": "sha1-ys6GOG9ZoNuAUPqQ2baw6IoeNk8="
},
"qrcode.react": {
"version": "1.0.0",
"resolved": "https://registry.npm.taobao.org/qrcode.react/download/qrcode.react-1.0.0.tgz",
"integrity": "sha1-foiJ2zt2nlVejrRj1MbeIhw21d4=",
"requires": {
"loose-envify": "^1.4.0",
"prop-types": "^15.6.0",
"qr.js": "0.0.0"
}
},
"qs": { "qs": {
"version": "6.7.0", "version": "6.7.0",
"resolved": "http://registry.npm.taobao.org/qs/download/qs-6.7.0.tgz", "resolved": "http://registry.npm.taobao.org/qs/download/qs-6.7.0.tgz",

@ -111,17 +111,14 @@ export default ({ src, videoId, logWatchHistory, courseId = null }) => {
log() log()
} }
} }
//
async function onEnded() { async function onEnded() {
log(() => { log(() => {
logId = null logId = null
logCount = 1
lastUpdatedTime = 0 lastUpdatedTime = 0
sumTimePlayed = 0
initLog = false initLog = false
isLoging = false isLoging = false
isSeeking = false isSeeking = false
pos = []
}, true) }, true)
} }
@ -140,6 +137,8 @@ export default ({ src, videoId, logWatchHistory, courseId = null }) => {
log() log()
} }
} }
}else {
lastUpdatedTime = newTime
} }
} }

Loading…
Cancel
Save