导出问题,增加了打印1
This commit is contained in:
parent
839a490533
commit
e0e1e6468c
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user