代付订单

This commit is contained in:
lu7213 committed 2026-10-17 12:06:14 -04:00
1 parent d81820c74f
commit 1eca7a77bc
15 files changed
+2200 -130

No files matched your search

@@ -1,6 +1,22 @@
package com.ruoyi.task;
import com.ruoyi.system.service.PayoutProcessingService;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
/** 定时确认已广播代付交易,链上成功后执行最终结算。 */
@Component public class PayoutConfirmationTask {private final PayoutProcessingService service;public PayoutConfirmationTask(PayoutProcessingService service){this.service=service;}@Scheduled(fixedDelay=30000L)public void confirm(){service.confirmPending();}}
/**
* 定时确认已广播代付交易,链上成功后执行最终结算。
*/
@Component
public class PayoutConfirmationTask {
private final PayoutProcessingService service;
public PayoutConfirmationTask(PayoutProcessingService service) {
this.service = service;
}
@Scheduled(fixedDelay = 30000L)
public void confirm() {
service.confirmPending();
}
}