diff --git a/business/jxstore/cms/cms.go b/business/jxstore/cms/cms.go index 1899407f7..4ecb5267c 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" @@ -726,6 +727,8 @@ func GetCyclingLine(sLng, sLat, uLng, uLat float64) (polyLineList []string, dist // 高德坐标转换成百度坐标 coords, err = api.BaiDuNaviAPI.BatchCoordinateConvert(coords, baidunavi.CoordSysGaoDe2Baidu) + globals.SugarLogger.Debugf("========coords := %s", utils.Format4Output(coords, false)) + globals.SugarLogger.Debugf("========coords :err= %v", err) if err != nil || len(coords) <= model.NO { return nil, 0, 0, err } @@ -751,7 +754,10 @@ func GetCyclingLine(sLng, sLat, uLng, uLat float64) (polyLineList []string, dist } } + globals.SugarLogger.Debugf("========polyLine := %s", utils.Format4Output(polyLine, false)) polyLineList, err = baiDuCoord2Gaode(polyLine) + globals.SugarLogger.Debugf("========polyLineList := %s", utils.Format4Output(coords, false)) + globals.SugarLogger.Debugf("========polyLineList :err= %v", err) return }