作者 macbook
1 个管道 的构建 通过 耗费 1 秒

附近工作

... ... @@ -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){
... ...