From d68eebfc8ba7368e0a784e1d65431c34949fafed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Tue, 1 Sep 2020 15:35:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E4=BA=AC=E4=B8=9C=E9=97=A8?= =?UTF-8?q?=E5=BA=97=E8=8C=83=E5=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/jxstore/tempop/tempop.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/business/jxstore/tempop/tempop.go b/business/jxstore/tempop/tempop.go index 48d0f3b18..88765e272 100644 --- a/business/jxstore/tempop/tempop.go +++ b/business/jxstore/tempop/tempop.go @@ -1595,9 +1595,10 @@ func UploadJdsImage(ctx *jxcontext.Context) (err error) { for _, v := range storeMaps { station, _ := jd.GetAPI("320406").GetDeliveryRangeByStationNo2(v.VendorStoreID) if station.DeliveryRangeType == 2 { + strs := strings.Split(station.DeliveryRange, ";") ss = append(ss, &tmp{ jdID: v.VendorStoreID, - s: jxutils.ComputeSignedArea(strings.Split(station.DeliveryRange, ";")), + s: jxutils.ComputeSignedArea(strs[:len(strs)-1]), }) } }