Kaynağa Gözat

go excel 报错导出JSON

LD 5 yıl önce
ebeveyn
işleme
44595e3160

+ 1 - 0
serves/excelExportGo/api/controller/controller.go

@@ -56,6 +56,7 @@ func selectModule(params map[string]string) (row []interface{}, list [][]interfa
 		err := json.Unmarshal([]byte(params["data"]),&val)
 		if err != nil {
 			utilities.WriteLog("/api/controller/controller.go:58  JSON解析失败!","ERROR")
+			utilities.WriteLog(params["data"],"ERROR")
 		}
 		row = val.ROW
 		list = val.LIST