Browse Source

写一个测试方法

sandm 2 years ago
parent
commit
7f6bfce3cc
1 changed files with 7 additions and 0 deletions
  1. 7 0
      app/index/controller/Auth.php

+ 7 - 0
app/index/controller/Auth.php

@@ -223,4 +223,11 @@ class Auth extends BaseController {
         }
     }
 
+    public function test(){
+        $redis = new \Redis();
+        $redis->connect("192.168.51.99", 6379);
+        $redis->auth("jjhc2019");
+        var_dump($redis->hget("product",2301));
+    }
+
 }