From c34535b638df399d6a6ecc65c2c8711da09f3bb0 Mon Sep 17 00:00:00 2001 From: richboo111 Date: Wed, 20 Jul 2022 14:24:35 +0800 Subject: [PATCH] debug address --- business/jxstore/cms/job.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/business/jxstore/cms/job.go b/business/jxstore/cms/job.go index 7e94544d6..91dbd4100 100644 --- a/business/jxstore/cms/job.go +++ b/business/jxstore/cms/job.go @@ -155,9 +155,10 @@ func PublishJob(ctx *jxcontext.Context, jobExt *model.JobExt) (jobID int, errCod } } if job.Address != "" && (job.Lng == 0 || job.Lat == 0) { - fmt.Println("================================" + job.Address) + globals.SugarLogger.Debugf("==================" + job.Address) lng, lat, _ := api.AutonaviAPI.GetCoordinateFromAddressByPage(job.Address, job.JobCityCode) - fmt.Println("=========", lng, "=============", lat) + globals.SugarLogger.Debugf("%f", lng) + globals.SugarLogger.Debugf("%f", lat) if lng == 0 || lat == 0 { return 0, errCode, fmt.Errorf("请填写完整且正确的门店地址!") }