diff --git a/business/jxstore/report/report.go b/business/jxstore/report/report.go index 8211e89bc..053a55eb4 100644 --- a/business/jxstore/report/report.go +++ b/business/jxstore/report/report.go @@ -514,6 +514,9 @@ func CalculateCoverArea(coordinate []string, vendorID int) (area float64) { var xyList [][2]float64 for _, v := range coordinate { cell := strings.Split(v, ",") + if len(cell) == 0 { + continue + } var lat, lng float64 if vendorID == model.VendorIDJD { lng = utils.Str2Float64WithDefault(cell[0], 0)