|
|
@@ -1002,9 +1002,9 @@ public class OrderService {
|
|
|
@Scheduled(cron = "0 0/5 * * * ?")
|
|
|
public void setBlackList() {
|
|
|
List<Long> userIds = orderRepo
|
|
|
- .checkBlackList(LocalDateTime.now(), LocalDateTime.now().plusHours(1));
|
|
|
+ .checkBlackList(LocalDateTime.now(), LocalDateTime.now().minusMinutes(10));
|
|
|
userIds.forEach(userId -> {
|
|
|
- redisTemplate.opsForValue().set(RedisKeys.BLACK_LIST + userId, 1, Duration.ofSeconds(60 * 60));
|
|
|
+ redisTemplate.opsForValue().set(RedisKeys.BLACK_LIST + userId, 1, Duration.ofSeconds(60 * 180));
|
|
|
});
|
|
|
}
|
|
|
|