...
|
...
|
@@ -221,7 +221,7 @@ class Index extends Api |
|
|
$where .= "find_in_set({$type},type)";
|
|
|
}
|
|
|
$data = Job::where($where)
|
|
|
->field("*,if($distance > 1000,CONCAT(ROUND($distance/1000,1),'千'),$distance) distance")
|
|
|
->field("*,if($distance > 1000,CONCAT(ROUND($distance/1000,1),'k'),$distance) distance")
|
|
|
->order(['distance'=>'asc','weigh'=>'desc'])
|
|
|
->paginate($page_num,false,['page'=>$page])
|
|
|
->each(function($v){
|
...
|
...
|
|