发
This commit is contained in:
parent
bd1bd5b2e9
commit
f54c0c8a6b
@ -173,6 +173,14 @@ $di->set('redis', function ()
|
||||
} elseif ($_SERVER['HTTP_HOST'] == '127.0.0.1'){ //本地环境
|
||||
$redisObj->connect('mysql5.weu.me', 6379);
|
||||
} else{
|
||||
// // 测试环境
|
||||
// if (! empty($_SERVER['REQUEST_URI']) && (preg_match("@\/d\/@", strtolower($_SERVER['REQUEST_URI'])) || preg_match("@\/smsservice_qa\/@", strtolower($_SERVER['REQUEST_URI'])))) {
|
||||
// $this->redis->select(210);
|
||||
// } else {
|
||||
// $this->redis->select(211);
|
||||
// }
|
||||
echo $_SERVER['REQUEST_URI'];die;
|
||||
|
||||
echo $_SERVER['HTTP_HOST'];die;
|
||||
// $redisObj->connect('r-bp1i8kwmlrnp6hhrkf.redis.rds.aliyuncs.com', 6379);
|
||||
// $redisObj->auth('r-bp1i8kwmlrnp6hhrkf');
|
||||
|
||||
Loading…
Reference in New Issue
Block a user