fix: 后台配置免费时长参数秒数改为分钟

This commit is contained in:
张松
2024-12-24 13:57:32 +08:00
parent 81da6fa6a3
commit bf6864b725
3 changed files with 2 additions and 3 deletions

View File

@@ -113,7 +113,7 @@ public class CourseDetailsServiceImpl extends ServiceImpl<CourseDetailsDao, Cour
// 购买次数超过设置redis标识
if (count >= Integer.parseInt(needCountCommonInfo.getValue())) {
redisServiceImpl.setFreeWatchTime(userId, Integer.parseInt(freeTimeCommonInfo.getValue()), false);
redisServiceImpl.setFreeWatchTime(userId, Integer.parseInt(freeTimeCommonInfo.getValue()) * 60, false);
// 触发计时
redisServiceImpl.getFreeWatchTimeIsExpire(userId);
isExpire = false;