浏览代码

写一个测试方法

sandm 2 年之前
父节点
当前提交
7f6bfce3cc
共有 1 个文件被更改,包括 7 次插入0 次删除
  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));
+    }
+
 }
 }