From c6285d9f24585ffc72ea457eef15a0d44d67d320 Mon Sep 17 00:00:00 2001 From: LambdaExpression Date: Mon, 13 May 2024 15:14:42 +0800 Subject: [PATCH] fix: update TotalAmount to CommonFlow --- tools/conversion.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/conversion.go b/tools/conversion.go index 0c98fda..70ac11e 100644 --- a/tools/conversion.go +++ b/tools/conversion.go @@ -18,8 +18,8 @@ func ToSummary(qryImportantData *models.Result[models.ImportantData], username s balanceFlow, _ := strconv.ParseInt(data.FlowInfo.TotalAmount.Balance, 10, 64) totalFlow := useFlow + balanceFlow - generalUse, _ := strconv.ParseInt(data.FlowInfo.TotalAmount.Used, 10, 64) - generalBalance, _ := strconv.ParseInt(data.FlowInfo.TotalAmount.Balance, 10, 64) + generalUse, _ := strconv.ParseInt(data.FlowInfo.CommonFlow.Used, 10, 64) + generalBalance, _ := strconv.ParseInt(data.FlowInfo.CommonFlow.Balance, 10, 64) generalTotal := generalUse + generalBalance specialUse, _ := strconv.ParseInt(data.FlowInfo.SpecialAmount.Used, 10, 64)