diff --git a/business/jxstore/cms/cms.go b/business/jxstore/cms/cms.go index 361881186..000488936 100644 --- a/business/jxstore/cms/cms.go +++ b/business/jxstore/cms/cms.go @@ -622,6 +622,9 @@ func GetSToURidingDistance2(sLng, sLat, uLng, uLat float64, orderId string) (way if err != nil { return nil, err } + if len(waybills) == 0 { + return wayBill, err + } for _, v := range waybills { // 获取骑行路线图 if v.OriginalData == "" {