From e0e1e6468cbdd4189107d4b4600189548fe69503 Mon Sep 17 00:00:00 2001 From: wucongxing8150 <815046773@qq.com> Date: Fri, 6 Dec 2024 09:10:27 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=BC=E5=87=BA=E9=97=AE=E9=A2=98=EF=BC=8C?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=BA=86=E6=89=93=E5=8D=B01?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/service/export.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/service/export.go b/api/service/export.go index c937298..d7b3351 100644 --- a/api/service/export.go +++ b/api/service/export.go @@ -1658,7 +1658,7 @@ func (r *ExportService) OrderProduct(d []*model.OrderProduct) (string, error) { } // 转为 JSON - jsonData, err := json.MarshalIndent(dataSlice, "", " ") + jsonData, err := json.Marshal(dataSlice) if err != nil { fmt.Println("Error converting to JSON:", err) return "", err