礼金过期

This commit is contained in:
雷欧(林平凡)
2025-06-13 15:27:09 +08:00
parent 8635c05565
commit 8e8726804b

View File

@@ -548,7 +548,7 @@ public class JDScheduleJob {
hashOps.putAll(key, hours.stream().collect(Collectors.toMap(h -> h, h -> "1")));
}
@Scheduled(cron = "0 0 0 * * ?") // 每天 0 点执行
@Scheduled(cron = "0 0 0,8 * * ?")
public void checkGiftCouponsExpiry() {
Set<String> keys = redisTemplate.keys("gift_coupon:*");
if (keys == null || keys.isEmpty()) return;