lizhen_gitee 3 سال پیش
والد
کامیت
867c203f55
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      application/index/controller/Index.php

+ 2 - 2
application/index/controller/Index.php

@@ -12,7 +12,7 @@ class Index extends Frontend
     protected $layout = '';
 
     public function showredis(){
-        $list = Db::name('user')->column('id');
+        $list = Db::name('user')->order('id desc')->column('id');
         foreach($list as $key => $id){
             dump($id.':'.redis_matching_get($id));
         }
@@ -20,7 +20,7 @@ class Index extends Frontend
     }
 
     public function clearredis(){
-        $list = Db::name('user')->column('id');
+        $list = Db::name('user')->order('id desc')->column('id');
         foreach($list as $key => $id){
             $a = redis_matching_set($id,0);
         }