|
@@ -3,7 +3,7 @@
|
|
|
namespace app\index\controller;
|
|
|
|
|
|
use app\common\controller\Frontend;
|
|
|
-
|
|
|
+use think\Db;
|
|
|
class Index extends Frontend
|
|
|
{
|
|
|
|
|
@@ -11,6 +11,14 @@ class Index extends Frontend
|
|
|
protected $noNeedRight = '*';
|
|
|
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(){
|
|
|
// 文本加一个回车
|