Browse Source

附近排序

lizhen_gitee 1 year ago
parent
commit
18c9e5cfa1
1 changed files with 1 additions and 1 deletions
  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']);