查询京东门店范围

This commit is contained in:
苏尹岚
2020-09-01 15:35:42 +08:00
parent fe2be21561
commit d68eebfc8b

View File

@@ -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]),
})
}
}