|
@@ -298,10 +298,10 @@ export default {
|
|
|
let self = this
|
|
|
return new Promise(resolve=>{
|
|
|
let data = {
|
|
|
- gradeId:self.gradeId,
|
|
|
- goodsId:self.goodsId,
|
|
|
- sectionId:self.playSectionId,
|
|
|
- courseId: self.courseId,
|
|
|
+ gradeId:Number(self.gradeId),
|
|
|
+ goodsId:Number(self.goodsId),
|
|
|
+ sectionId:Number(self.playSectionId),
|
|
|
+ courseId: Number(self.courseId),
|
|
|
}
|
|
|
self.$api.recordLast(data).then(res => {
|
|
|
resolve(res.data.data)
|
|
@@ -419,6 +419,9 @@ export default {
|
|
|
chapterId:parseInt(self.chapterId),
|
|
|
moduleId:parseInt(self.moduleId)
|
|
|
}
|
|
|
+ if(data.studyDuration<=5){ //5秒内不上传记录
|
|
|
+ return
|
|
|
+ }
|
|
|
if(status>0){
|
|
|
data.status = status
|
|
|
}
|