debug address

This commit is contained in:
richboo111
2022-07-20 14:13:08 +08:00
parent f9a0f52982
commit 6ad5157cdc

View File

@@ -155,7 +155,9 @@ func PublishJob(ctx *jxcontext.Context, jobExt *model.JobExt) (jobID int, errCod
}
}
if job.Address != "" && (job.Lng == 0 || job.Lat == 0) {
fmt.Println("================================" + job.Address)
lng, lat, _ := api.AutonaviAPI.GetCoordinateFromAddressByPage(job.Address, job.JobCityCode)
fmt.Println("=========", lng, "=============", lat)
if lng == 0 || lat == 0 {
return 0, errCode, fmt.Errorf("请填写完整且正确的门店地址!")
}