fix: 后台配置免费时长参数秒数改为分钟
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user