|
@@ -881,7 +881,7 @@ public class FsCourseWatchLogServiceImpl extends ServiceImpl<FsCourseWatchLogMap
|
|
|
if (videoDuration==null){
|
|
|
FsUserCourseVideo video = courseVideoMapper.selectFsUserCourseVideoByVideoId(videoId);
|
|
|
videoDuration=video.getDuration();
|
|
|
- redisCache.setCacheObject(videoRedisKey,video.getDuration().toString());
|
|
|
+ redisCache.setCacheObject(videoRedisKey,video.getDuration());
|
|
|
}
|
|
|
return videoDuration;
|
|
|
}
|
|
@@ -985,7 +985,7 @@ public class FsCourseWatchLogServiceImpl extends ServiceImpl<FsCourseWatchLogMap
|
|
|
if (videoDuration==null){
|
|
|
FsUserCourseVideo video = courseVideoMapper.selectFsUserCourseVideoByVideoId(videoId);
|
|
|
videoDuration=video.getDuration();
|
|
|
- redisCache.setCacheObject(videoRedisKey,video.getDuration().toString());
|
|
|
+ redisCache.setCacheObject(videoRedisKey,video.getDuration());
|
|
|
}
|
|
|
return videoDuration;
|
|
|
}
|