Explorar o código

go excel 报错导出JSON

LD %!s(int64=5) %!d(string=hai) anos
pai
achega
44595e3160
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      serves/excelExportGo/api/controller/controller.go

+ 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