aa
This commit is contained in:
@@ -250,6 +250,13 @@ func GetJobDetail(ctx *jxcontext.Context, jobID int, lng, lat float64) (job *dao
|
||||
if job.Lng != 0 && job.Lat != 0 {
|
||||
job.Distance = jxutils.EarthDistance(lng, lat, jxutils.IntCoordinate2Standard(job.Lng), jxutils.IntCoordinate2Standard(job.Lat))
|
||||
}
|
||||
utils.CallFuncAsync(func() {
|
||||
job2 := &model.Job{}
|
||||
job2.ID = job.ID
|
||||
dao.GetEntity(db, job2)
|
||||
job2.BrowseCount++
|
||||
dao.UpdateEntity(db, job2, "BrowseCount")
|
||||
})
|
||||
return job, err
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user