Ver código fonte

附近排序

lizhen_gitee 1 ano atrás
pai
commit
18c9e5cfa1
1 arquivos alterados com 1 adições e 1 exclusões
  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']);