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)) {