|  | @@ -3,7 +3,7 @@
 | 
											
												
													
														|  |  namespace app\index\controller;
 |  |  namespace app\index\controller;
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  use app\common\controller\Frontend;
 |  |  use app\common\controller\Frontend;
 | 
											
												
													
														|  | -
 |  | 
 | 
											
												
													
														|  | 
 |  | +use think\Db;
 | 
											
												
													
														|  |  class Index extends Frontend
 |  |  class Index extends Frontend
 | 
											
												
													
														|  |  {
 |  |  {
 | 
											
												
													
														|  |  
 |  |  
 | 
											
										
											
												
													
														|  | @@ -11,6 +11,14 @@ class Index extends Frontend
 | 
											
												
													
														|  |      protected $noNeedRight = '*';
 |  |      protected $noNeedRight = '*';
 | 
											
												
													
														|  |      protected $layout = '';
 |  |      protected $layout = '';
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  | 
 |  | +    public function testredis(){
 | 
											
												
													
														|  | 
 |  | +        $list = Db::name('user')->column('id');
 | 
											
												
													
														|  | 
 |  | +        foreach($list as $key => $id){
 | 
											
												
													
														|  | 
 |  | +            $a = redis_matching_set($id,0);
 | 
											
												
													
														|  | 
 |  | +        }
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  | 
 |  | +    }
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |      public function test1(){
 |  |      public function test1(){
 | 
											
												
													
														|  |          // 文本加一个回车
 |  |          // 文本加一个回车
 |