소스 검색

feat: 异味

xdd 2 달 전
부모
커밋
0fa4b6e113
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      fs-service/src/main/java/com/fs/course/service/impl/FsUserCourseVideoServiceImpl.java

+ 1 - 2
fs-service/src/main/java/com/fs/course/service/impl/FsUserCourseVideoServiceImpl.java

@@ -1463,9 +1463,8 @@ public class FsUserCourseVideoServiceImpl implements IFsUserCourseVideoService
             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);
+            redisCache.setCacheObject(redisKey, LocalDateTime.now().toString(),300, TimeUnit.SECONDS);
         }
 
         // 添加会员销售关系表数据