Sfoglia il codice sorgente

写一个测试方法

sandm 2 anni fa
parent
commit
7f6bfce3cc
1 ha cambiato i file con 7 aggiunte e 0 eliminazioni
  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));
+    }
+
 }