From ae4df6b37486d1940cc69b765d5da20ff59caa2b Mon Sep 17 00:00:00 2001 From: "zhiqiang.wang" Date: Fri, 20 Oct 2023 19:24:13 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E6=97=A5=E5=BF=97=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/monitor/trade.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/monitor/trade.go b/app/monitor/trade.go index 97ed313..a88780a 100644 --- a/app/monitor/trade.go +++ b/app/monitor/trade.go @@ -97,14 +97,15 @@ func TradeStart() { // 解析响应记录 result := gjson.ParseBytes(all) - if result.Get("total").Num <= 0 { + recentTransferTotal := result.Get("total").Num + + log.Info(fmt.Sprintf("recent transfer total: %s(%v)", _toAddress, recentTransferTotal)) + if recentTransferTotal <= 0 { // 没有交易记录 continue } - log.Info(fmt.Sprintf("transfer total: %s(%s)", _toAddress, result.Get("total").String())) - // 遍历交易记录 for _, transfer := range result.Get("data").Array() { // 计算交易金额