|
@@ -1156,6 +1156,11 @@ public class FsUserCourseVideoServiceImpl implements IFsUserCourseVideoService
|
|
fsCourseWatchLog.setLogType(1);
|
|
fsCourseWatchLog.setLogType(1);
|
|
fsCourseWatchLog.setProject(courseProject);
|
|
fsCourseWatchLog.setProject(courseProject);
|
|
courseWatchLogMapper.insertFsCourseWatchLog(fsCourseWatchLog);
|
|
courseWatchLogMapper.insertFsCourseWatchLog(fsCourseWatchLog);
|
|
|
|
+
|
|
|
|
+ String redisKey = "h5wxuser:watch:heartbeat:" + param.getUserId() + ":" + param.getVideoId() + ":" + param.getCompanyUserId();
|
|
|
|
+ redisCache.setCacheObject(redisKey, LocalDateTime.now().toString());
|
|
|
|
+ // 设置 Redis 记录的过期时间(例如 5 分钟)
|
|
|
|
+ redisCache.expire(redisKey, 300, TimeUnit.SECONDS);
|
|
}
|
|
}
|
|
|
|
|
|
// 添加会员销售关系表数据
|
|
// 添加会员销售关系表数据
|