aa
This commit is contained in:
@@ -154,6 +154,9 @@ func PublishJob(ctx *jxcontext.Context, jobExt *model.JobExt) (errCode string, e
|
||||
}
|
||||
if job.Address != "" && (job.Lng == 0 || job.Lat == 0) {
|
||||
lng, lat, _ := api.AutonaviAPI.GetCoordinateFromAddress(job.Address, "")
|
||||
if lng == 0 || lat == 0 {
|
||||
return errCode, fmt.Errorf("请填写完整且正确的门店地址!")
|
||||
}
|
||||
job.Lng = jxutils.StandardCoordinate2Int(lng)
|
||||
job.Lat = jxutils.StandardCoordinate2Int(lat)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user