From 9243b4b5f914bfa6ee9111e4b55c32ed63c8d0a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Wed, 10 Mar 2021 11:49:23 +0800 Subject: [PATCH] aa --- business/jxstore/report/report.go | 3 +++ 1 file changed, 3 insertions(+) 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)