|
|
@@ -326,6 +326,9 @@ public class UserStudyRecordServiceImpl extends ServiceImpl<UserStudyRecordMappe
|
|
|
add.setVideoCurrentTime(0L);
|
|
|
}
|
|
|
if(Validator.isNotEmpty(add.getStudyDuration())){
|
|
|
+ if(add.getStudyDuration().longValue()>60L){
|
|
|
+ add.setStudyDuration(60L); //前端60秒提交一次,超过60按60算
|
|
|
+ }
|
|
|
add.setStartTime(DateUtils.getNowTime().longValue() - add.getStudyDuration().longValue());
|
|
|
}else{
|
|
|
add.setStartTime(DateUtils.getNowTime().longValue());
|