From 108dba4ea944356a8def92f03e89f68e55d90abd Mon Sep 17 00:00:00 2001 From: BaoXuebin Date: Sat, 4 Jun 2022 13:31:40 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20unix=20=E6=8D=A2=E8=A1=8C=E7=AC=A6=20cha?= =?UTF-8?q?nge=20to=20'\n'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- service/stats.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service/stats.go b/service/stats.go index cbe3aab..27bf714 100644 --- a/service/stats.go +++ b/service/stats.go @@ -420,7 +420,7 @@ func StatsCommodityPrice(c *gin.Context) { script.LogInfo(ledgerConfig.Mail, output) statsPricesResultList := make([]StatsPricesResult, 0) - lines := strings.Split(output, "\r\n") + lines := strings.Split(output, "\n") // foreach lines for _, line := range lines { if strings.Trim(line, " ") == "" {