vali 6 년 전
부모
커밋
89a6ae3f18
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      datainf/logic/HttpServerRedisToSql.php

+ 2 - 1
datainf/logic/HttpServerRedisToSql.php

@@ -72,7 +72,8 @@ class HttpServerRedisToSql
         $redisconfig = $this->redisonfig;
         //go(function () use ($redisconfig) {
         $begint = microtime(true);
-        $redis = new Swoole\Coroutine\Redis();
+        //$redis = new Swoole\Coroutine\Redis();
+        $redis = new \Redis();
         $ret = $redis->connect($redisconfig['host'], $redisconfig['port']);
         if (!$ret) {
             echo "redis 连接失败!";