|
@@ -1338,10 +1338,7 @@ public class FsUserCourseVideoServiceImpl implements IFsUserCourseVideoService
|
|
|
|
|
|
// 用户领取红包次数+1
|
|
|
redisTemplateInteger.opsForValue().increment(userLimitKey, 1);
|
|
|
- // 设置过期时间为第二天凌晨0点
|
|
|
- long expireSeconds = getExpireSeconds();
|
|
|
- // 设置过期时间
|
|
|
- redisTemplateInteger.expire(userLimitKey, expireSeconds, TimeUnit.SECONDS);
|
|
|
+
|
|
|
return sendRedPacket;
|
|
|
} else {
|
|
|
return R.error("奖励发送失败,请联系客服");
|
|
@@ -1557,11 +1554,6 @@ public class FsUserCourseVideoServiceImpl implements IFsUserCourseVideoService
|
|
|
|
|
|
// 用户领取红包次数+1
|
|
|
redisTemplateInteger.opsForValue().increment(userLimitKey, 1);
|
|
|
- // 设置过期时间为第二天凌晨0点
|
|
|
- long expireSeconds = getExpireSeconds();
|
|
|
- // 设置过期时间
|
|
|
- redisTemplateInteger.expire(userLimitKey, expireSeconds, TimeUnit.SECONDS);
|
|
|
-
|
|
|
return sendRedPacket;
|
|
|
} else {
|
|
|
return R.error("奖励发送失败,请联系客服");
|