From 48394cda3735b1f7f2a473d5beb4e904cb55b487 Mon Sep 17 00:00:00 2001 From: 1186 <13640910284@163.com> Date: Thu, 27 Jun 2024 10:27:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=A9=BA=E6=8C=87=E9=92=88?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/alive/server/service/CrowdfundingService.java | 2 +- .../src/main/java/com/alive/server/task/CrowdfundingTask.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/alive-api/src/main/java/com/alive/server/service/CrowdfundingService.java b/alive-api/src/main/java/com/alive/server/service/CrowdfundingService.java index 9dee436..014886b 100644 --- a/alive-api/src/main/java/com/alive/server/service/CrowdfundingService.java +++ b/alive-api/src/main/java/com/alive/server/service/CrowdfundingService.java @@ -299,7 +299,7 @@ public class CrowdfundingService extends BaseComponent { throw new RuntimeException(e.getMessage()); } } - if(send.getError() != null && send.getError().getMessage() != null){ + if(send != null && send.getError() != null && send.getError().getMessage() != null){ log.info("扫描块失败(检查节点是否被限制) out {} ,{}, {}", startBlock, endBlock, send.getError().getMessage()); return null; } diff --git a/alive-api/src/main/java/com/alive/server/task/CrowdfundingTask.java b/alive-api/src/main/java/com/alive/server/task/CrowdfundingTask.java index d59412e..38fdc77 100644 --- a/alive-api/src/main/java/com/alive/server/task/CrowdfundingTask.java +++ b/alive-api/src/main/java/com/alive/server/task/CrowdfundingTask.java @@ -23,7 +23,7 @@ public class CrowdfundingTask { private CrowdfundingService crowdfundingService; /** - * 节点交易确认 10分钟执行一次 + * 众筹交易确认 10分钟执行一次 */ @Scheduled(initialDelay = 15_000, fixedDelay = 1000 * 60 * 10) public void exec() {