diff --git a/application/api/controller/v2/Index.php b/application/api/controller/v2/Index.php index ead1822..fc13b36 100644 --- a/application/api/controller/v2/Index.php +++ b/application/api/controller/v2/Index.php @@ -223,7 +223,7 @@ class Index extends Api $where .= "find_in_set({$type},type)"; } $data = Job::where($where) - ->field("*,if($distance > 1000,CONCAT(ROUND($distance/1000,1),'k'),$distance) distance") + ->field("*,if($distance > 1000,CONCAT(ROUND($distance/1000,1),'km'),CONCAT($distance,'m')) distance") ->order(['distance'=>'asc','weigh'=>'desc']) ->paginate($page_num,false,['page'=>$page]) ->each(function($v){