This commit is contained in:
苏尹岚
2020-12-22 18:05:54 +08:00
parent 382ef05884
commit d2e6dd6bf3

View File

@@ -123,7 +123,7 @@ func PublishJob(ctx *jxcontext.Context, jobExt *model.JobExt) (errCode string, e
} }
} }
if job.Address != "" && (job.Lng == 0 || job.Lat == 0) { if job.Address != "" && (job.Lng == 0 || job.Lat == 0) {
lng, lat, err := api.AutonaviAPI.GetCoordinateFromAddressByPage(job.Address) lng, lat, err := api.AutonaviAPI.GetCoordinateFromAddress(job.Address, "")
if err != nil { if err != nil {
return errCode, err return errCode, err
} }