删除日志检测
This commit is contained in:
@@ -155,10 +155,7 @@ func PublishJob(ctx *jxcontext.Context, jobExt *model.JobExt) (jobID int, errCod
|
||||
}
|
||||
}
|
||||
if job.Address != "" && (job.Lng == 0 || job.Lat == 0) {
|
||||
globals.SugarLogger.Debugf("==================" + job.Address)
|
||||
lng, lat, _ := api.AutonaviAPI.GetCoordinateFromAddressByPage(job.Address, job.JobCityCode)
|
||||
globals.SugarLogger.Debugf("%f", lng)
|
||||
globals.SugarLogger.Debugf("%f", lat)
|
||||
if lng == 0 || lat == 0 {
|
||||
return 0, errCode, fmt.Errorf("请填写完整且正确的门店地址!")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user