Kirin 3 anni fa
parent
commit
5bf6e0180a
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      app/admin/model/vote/VoteJoin.php

+ 1 - 0
app/admin/model/vote/VoteJoin.php

@@ -46,6 +46,7 @@ class VoteJoin extends BaseModel
             ->where('a.vid', $id)
             ->where('a.vid', $id)
             ->join('user u', 'u.uid = a.uid', 'left')
             ->join('user u', 'u.uid = a.uid', 'left')
             ->field('a.*,u.nickname,u.uid')
             ->field('a.*,u.nickname,u.uid')
+            ->order('status asc,id desc')
             ->page((int)$where['page'], (int)$where['limit'])
             ->page((int)$where['page'], (int)$where['limit'])
             ->select()
             ->select()
             ->each(function ($item) use ($id) {
             ->each(function ($item) use ($id) {