feat: 用户累计充值可得免费播放全集权限

This commit is contained in:
张松
2024-12-18 17:25:52 +08:00
parent 5a10f03a4a
commit c9242db805

View File

@@ -35,7 +35,7 @@ public class RedisServiceImpl implements RedisService {
Date now = DateUtil.date();
Date tomorrow = DateUtil.beginOfDay(DateUtil.offsetDay(now, 1));
long seconds = DateUtil.between(now, tomorrow, DateUnit.SECOND);
redisUtils.setIfAbsent(RedisKeys.getPayFreeWatchKey(userId), DateUtil.offsetMinute(now, minute).getTime(), seconds + 300);
redisUtils.setIfAbsent(RedisKeys.getPayFreeWatchKey(userId), DateUtil.offsetMinute(now, minute).getTime(), seconds);
}
@Override