Browse Source

调配置

王刚 3 years ago
parent
commit
1d685f9557
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Gameserver/Amfphp/util/CRedisUtil.php

+ 1 - 1
Gameserver/Amfphp/util/CRedisUtil.php

@@ -164,7 +164,7 @@ class CRedisUtil {
      * @param string $db 数据库, 不建议输入参数, 如果是购买云实例只有一个db.
      * @param string $db 数据库, 不建议输入参数, 如果是购买云实例只有一个db.
      * @return \CRedisUtil
      * @return \CRedisUtil
      */
      */
-    public function conn($host, $port, $pwd = "", $db = 1) {
+    public function conn($host, $port, $pwd = "", $db = 0) {
 //        DebugHelper::print_stack_trace();
 //        DebugHelper::print_stack_trace();
         $this->redis = new \Predis\Client(array(
         $this->redis = new \Predis\Client(array(
             'scheme' => 'tcp',
             'scheme' => 'tcp',