删除日志检测

This commit is contained in:
richboo111
2022-07-20 18:21:00 +08:00
parent 81fca6fb44
commit 6191973f13

View File

@@ -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("请填写完整且正确的门店地址!")
}