添加日志打印

This commit is contained in:
lu7213 committed 2026-10-12 04:21:28 -04:00
1 parent 1202a7a9d3
commit 40088cd0f0
2 files changed
+4

No files matched your search

@@ -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("链上查询失败,请稍后重试");
}
}
@@ -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)) {