From b0d97c42d17f47bad97b442216162374d8be11c0 Mon Sep 17 00:00:00 2001
From: colly_wyx <wangyixiong_007@163.com>
Date: Sun, 08 Apr 2018 09:54:53 +0800
Subject: [PATCH] 默认汇总时间设定为昨天
---
application/library/RedisCache.php | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/application/library/RedisCache.php b/application/library/RedisCache.php
index dcbb708..32ac759 100644
--- a/application/library/RedisCache.php
+++ b/application/library/RedisCache.php
@@ -36,7 +36,7 @@
$this->_TIMEOUT = 0;
$this->_DBNAME = null;
$this->_CTYPE = 1;
-
+ $this->_AUTH = $config['auth'];
if (!isset($this->_REDIS)) {
$this->_REDIS = new Redis();
$this->connect($this->_HOST, $this->_PORT, $this->_TIMEOUT, $this->_DBNAME, $this->_CTYPE);
@@ -58,6 +58,7 @@
default:
break;
}
+ $this->_REDIS->auth($this->_AUTH);
}
/**
@@ -927,4 +928,4 @@
{
return $this->_TRANSCATION->discard();
}
-}
\ No newline at end of file
+}
--
Gitblit v1.8.0