Skip to content

Windows换行符问题和统计接口将账户多加一级返回的问题 #102

@cabin5955

Description

@cabin5955
  1. 有几处地方换行符是\r\n,结果在Windows系统是正确的,但在MacOS和Linux会出问题
    比如file.go文件的AppendFileInNewLine函数、transactions.go文件的saveTransaction函数、accounts.go文件的BalanceAccount函数。

  2. 账户分布百分比接口 /api/auth/stats/account/percent 返回结果里的account字段返回的账户比原账户多了一级,比如定义的是”Expenses:交通:停车“,返回的是”Expenses:交通:停车:停车“,多加了一级。

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions