|
@@ -1140,8 +1140,12 @@ public class FsUserCourseVideoServiceImpl implements IFsUserCourseVideoService
|
|
}
|
|
}
|
|
//
|
|
//
|
|
if (courseVideoDetails != null && courseVideoDetails.getDuration() != null){
|
|
if (courseVideoDetails != null && courseVideoDetails.getDuration() != null){
|
|
- tipsTime = courseVideoDetails.getDuration() / 3;
|
|
|
|
- tipsTime2 = (courseVideoDetails.getDuration() * 2) / 3;
|
|
|
|
|
|
+ // 查询视频是否设置了红包,没有就不提示
|
|
|
|
+ FsUserCourseVideoRedPackage fsUserCourseVideoRedPackage = fsUserCourseVideoRedPackageMapper.selectRedPacketByCompanyId(param.getVideoId(), null, param.getPeriodId());
|
|
|
|
+ if(fsUserCourseVideoRedPackage != null){
|
|
|
|
+ tipsTime = courseVideoDetails.getDuration() / 3;
|
|
|
|
+ tipsTime2 = (courseVideoDetails.getDuration() * 2) / 3;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
vo.setTipsTime(tipsTime);
|
|
vo.setTipsTime(tipsTime);
|
|
vo.setTipsTime2(tipsTime2);
|
|
vo.setTipsTime2(tipsTime2);
|