|
|
@@ -999,12 +999,12 @@ public class OrderService {
|
|
|
EasyExcel.write(outputStream, MarketSettlement.class).sheet("sheet").doWrite(settlements);
|
|
|
}
|
|
|
|
|
|
- @Scheduled(cron = "0 0/5 * * * ?")
|
|
|
+ @Scheduled(cron = "0 0/3 * * * ?")
|
|
|
public void setBlackList() {
|
|
|
List<Long> userIds = orderRepo
|
|
|
- .checkBlackList(LocalDateTime.now(), LocalDateTime.now().minusMinutes(10));
|
|
|
+ .checkBlackList(LocalDateTime.now(), LocalDateTime.now().minusHours(1));
|
|
|
userIds.forEach(userId -> {
|
|
|
- redisTemplate.opsForValue().set(RedisKeys.BLACK_LIST + userId, 1, Duration.ofSeconds(60 * 180));
|
|
|
+ redisTemplate.opsForValue().set(RedisKeys.BLACK_LIST + userId, 10, Duration.ofSeconds(60 * 180));
|
|
|
});
|
|
|
}
|
|
|
|