소스 검색

附近排序

lizhen_gitee 1 년 전
부모
커밋
18c9e5cfa1
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      application/api/controller/Index.php

+ 1 - 1
application/api/controller/Index.php

@@ -103,7 +103,7 @@ class Index extends Api
             ->where($where)
             ->where($where_black)
             ->having($having_dis)
-            ->order('user.is_active desc,distance asc')
+            ->order('user.is_active desc,distance asc,user.id desc')
             ->autopage()
             ->select();
         $list = list_domain_image($list,['avatar','photo_images']);