From e945ff02d4601d6d0280e53e99d5ae3955991003 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Fri, 9 Aug 2024 16:13:50 +0800 Subject: [PATCH] 1 --- business/jxstore/cms/cms.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/business/jxstore/cms/cms.go b/business/jxstore/cms/cms.go index 000488936..08222f58b 100644 --- a/business/jxstore/cms/cms.go +++ b/business/jxstore/cms/cms.go @@ -626,6 +626,10 @@ func GetSToURidingDistance2(sLng, sLat, uLng, uLat float64, orderId string) (way return wayBill, err } for _, v := range waybills { + if len(waybills) == 1 && v.Status == model.OrderStatusCanceled { + return nil, nil + } + // 获取骑行路线图 if v.OriginalData == "" { originalData, distance, durationTime, err := GetCyclingLine(sLng, sLat, uLng, uLat)