Explorar o código

写一个测试方法

sandm %!s(int64=2) %!d(string=hai) anos
pai
achega
7f6bfce3cc
Modificáronse 1 ficheiros con 7 adicións e 0 borrados
  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));
+    }
+
 }