自动获取信息

This commit is contained in:
lu7213 committed 2026-10-10 21:50:24 -04:00
1 parent 4048428169
commit becfbd230b
9 files changed
+292 -42

No files matched your search

@@ -0,0 +1,19 @@
package com.ruoyi.task;
import com.ruoyi.system.service.WalletSnapshotRefreshService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
/** 定时投递需要刷新的钱包,实际队列和消费逻辑位于 ruoyi-system。 */
@Component
public class WalletSnapshotRefreshTask {
@Autowired
private WalletSnapshotRefreshService walletSnapshotRefreshService;
/** 每轮按更新时间投递五个钱包。 */
@Scheduled(fixedDelayString = "${payment.wallet-snapshot.producer-delay-ms:30000}")
public void produce() {
walletSnapshotRefreshService.enqueueScheduledBatch();
}
}