Skip to content

Commit

Permalink
fix: update TotalAmount to CommonFlow
Browse files Browse the repository at this point in the history
  • Loading branch information
LambdaExpression authored and LambdaExpression committed May 13, 2024
1 parent 51083e7 commit c6285d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/conversion.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c6285d9

Please sign in to comment.