fix(cryptotail): 已结算的触发不再请求 getOrder,直接标记 notification_sent=true

- 轮询时若 trigger.resolved 为 true,跳过 CLOB getOrder 请求
- 将 notification_sent 设为 true 并保存,避免已结算订单无限轮询

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
WrBug
2026-02-14 18:09:25 +08:00
co-authored by Cursor
parent 2ec4ae3f98
commit c6f9e5db61
@@ -75,6 +75,12 @@ class CryptoTailOrderNotificationPollingService(
if (pending.isEmpty()) return
for (trigger in pending) {
try {
if (trigger.resolved) {
trigger.notificationSent = true
triggerRepository.save(trigger)
logger.debug("触发已结算,跳过请求并标记已通知: triggerId=${trigger.id}, orderId=${trigger.orderId}")
continue
}
if (sendNotificationForTrigger(trigger)) {
trigger.notificationSent = true
triggerRepository.save(trigger)