lizhen_gitee 1 anno fa
parent
commit
18c9e5cfa1
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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']);