Prechádzať zdrojové kódy

[更新]修改粉丝列表排序

Anyon 8 rokov pred
rodič
commit
4551bfb698
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      application/wechat/controller/Fans.php

+ 1 - 1
application/wechat/controller/Fans.php

@@ -41,7 +41,7 @@ class Fans extends BasicAdmin {
      */
     public function index() {
         $this->title = '微信粉丝管理';
-        $db = Db::name($this->table)->where('is_back', '0')->order('id desc');
+        $db = Db::name($this->table)->where('is_back', '0')->order('subscribe_time desc');
         $get = $this->request->get();
         !empty($get['sex']) && $db->where('sex', $get['sex']);
         foreach (['nickname', 'country', 'province', 'city'] as $key) {