导出问题,增加了打印1

This commit is contained in:
wucongxing8150 2024-12-06 09:10:27 +08:00
parent 839a490533
commit e0e1e6468c

View File

@ -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