From 2e8fec79bc5c0ace6cdbd6ac7857415991af9cee 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 16:58:07 +0800 Subject: [PATCH] 1 --- business/jxstore/cms/cms.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/business/jxstore/cms/cms.go b/business/jxstore/cms/cms.go index 45b5e3868..4f9473176 100644 --- a/business/jxstore/cms/cms.go +++ b/business/jxstore/cms/cms.go @@ -2,6 +2,7 @@ package cms import ( "fmt" + "git.rosy.net.cn/jx-callback/globals" "math" "reflect" "regexp" @@ -730,6 +731,8 @@ func GetCyclingLine(sLng, sLat, uLng, uLat float64) (polyLineList []string, dist return nil, 0, 0, err } data, err := api.BaiDuNaviAPI.DirectionLiteRide(coords) + globals.SugarLogger.Debugf("======data := %s", utils.Format4Output(data, false)) + globals.SugarLogger.Debugf("======data := %v", err) if err != nil { return nil, 0, 0, err } @@ -761,6 +764,8 @@ func GetCyclingLine(sLng, sLat, uLng, uLat float64) (polyLineList []string, dist // 美团只认识高德地图坐标点,的转一下 func baiDuCoord2Gaode(baiduCoordinat []string) ([]string, error) { coords, err := api.BaiDuNaviAPI.BatchCoordinateConvertBai2Gao(baiduCoordinat, baidunavi.CoordSysBaidu2Gaode) + globals.SugarLogger.Debugf("------------coords %s", utils.Format4Output(coords, false)) + globals.SugarLogger.Debugf("------------coords %v", err) if err != nil { return nil, err }