|
@@ -1089,7 +1089,7 @@ public class FsUserCourseVideoServiceImpl implements IFsUserCourseVideoService
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- Long duration = 0L;
|
|
|
+ long duration = 0L;
|
|
|
long tipsTime = 0L;
|
|
|
int isFinish = 0;
|
|
|
FsUserCourseVideoLinkDetailsVO vo = new FsUserCourseVideoLinkDetailsVO();
|
|
@@ -1114,9 +1114,10 @@ public class FsUserCourseVideoServiceImpl implements IFsUserCourseVideoService
|
|
|
duration = Objects.isNull(watchLog) ? 0 : watchLog.getDuration();
|
|
|
}
|
|
|
//
|
|
|
-// if (course.getDuration()!=null){
|
|
|
-// tipsTime = course.getDuration()/2;
|
|
|
-// }
|
|
|
+ if (courseVideoDetails != null && courseVideoDetails.getDuration() != null){
|
|
|
+ tipsTime = courseVideoDetails.getDuration()/2;
|
|
|
+ }
|
|
|
+ vo.setTipsTime(tipsTime);
|
|
|
//判断是否完课
|
|
|
if (watchLog!=null && watchLog.getLogType() == 2) {
|
|
|
isFinish = 1;
|