From 0b7b24dde2913ed5434fd2bf32fff3a43c59b4d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Thu, 4 Jul 2024 17:16:32 +0800 Subject: [PATCH] 1 --- business/jxstore/cms/cms.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/business/jxstore/cms/cms.go b/business/jxstore/cms/cms.go index c72561992..dd16517fc 100644 --- a/business/jxstore/cms/cms.go +++ b/business/jxstore/cms/cms.go @@ -744,20 +744,20 @@ func GetCyclingLine(sLng, sLat, uLng, uLat float64) (polyLineList []string, dist return nil, 0, 0, err } - polyLine := make([]string, 0, 0) + //polyLine := make([]string, 0, 0) if path != nil && len(path.Routes) != 0 { distance = int64(path.Routes[0].Distance) // 距离 duration = int64(path.Routes[0].Duration) // 时间 for _, v := range path.Routes[0].Steps { - polyLine = append(polyLine, strings.Split(v.Path, ";")...) + polyLineList = append(polyLineList, strings.Split(v.Path, ";")...) } } - polyLineList, _ = baiDuCoord2Gaode(polyLine) - if err != nil { - polyLineList = polyLine - } + //polyLineList, err = baiDuCoord2Gaode(polyLine) + //if err != nil { + // polyLineList = polyLine + //} return }