From 40088cd0f057ef2bf1bd2a8bafbd70a3c2e62be7 Mon Sep 17 00:00:00 2001 From: luqingjie <544309509@qq.com> Date: Mon, 12 Oct 2026 04:21:28 -0400 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=97=A5=E5=BF=97=E6=89=93?= =?UTF-8?q?=E5=8D=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/ruoyi/system/controller/WalletAddressController.java | 3 +++ .../com/ruoyi/system/service/WalletSnapshotRefreshService.java | 1 + 2 files changed, 4 insertions(+) diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/controller/WalletAddressController.java b/ruoyi-system/src/main/java/com/ruoyi/system/controller/WalletAddressController.java index 18a28f0..651a694 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/system/controller/WalletAddressController.java +++ b/ruoyi-system/src/main/java/com/ruoyi/system/controller/WalletAddressController.java @@ -17,6 +17,7 @@ import com.ruoyi.system.service.IWalletAddressService; import com.ruoyi.system.service.IUsdtProxyToOtherService; import com.ruoyi.system.service.IUsdtOtherToProxyService; import com.ruoyi.system.service.WalletSigningService; +import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.security.access.prepost.PreAuthorize; import org.springframework.web.bind.annotation.*; @@ -32,6 +33,7 @@ import com.ruoyi.system.domain.vo.WalletOperationRequest; * @author luqj * @date 2025-11-25 */ +@Slf4j @RestController @RequestMapping("/system/address" ) public class WalletAddressController extends BaseController { @@ -67,6 +69,7 @@ public class WalletAddressController extends BaseController { ? AjaxResult.error("钱包刷新成功,但重新读取数据失败") : AjaxResult.success(refreshed); } catch (Exception ex) { + log.error(ex.getMessage(),ex); return AjaxResult.error("链上查询失败,请稍后重试"); } } diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/WalletSnapshotRefreshService.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/WalletSnapshotRefreshService.java index 44ba89f..05fd0fb 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/system/service/WalletSnapshotRefreshService.java +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/WalletSnapshotRefreshService.java @@ -145,6 +145,7 @@ public class WalletSnapshotRefreshService { walletAddressService.updateTronInfo(wallet); return; } catch (RuntimeException e) { + log.error(e.getMessage(),e); if (attempt == MAX_ATTEMPTS) { log.warn("钱包链上快照连续刷新失败,token={},尝试次数={}", token, MAX_ATTEMPTS); } else if (!waitBeforeRetry(attempt)) {