This commit is contained in:
wangwei01 2019-05-30 20:53:04 +08:00
parent 4fe02ab504
commit c254f11c66

View File

@ -17,7 +17,8 @@ class RankController{
protected function getRedis() protected function getRedis()
{ {
$redis_conf = getRedisConfig(); $key = 'game2001api';
$redis_conf = getRedisConfig($key);
$r = new phpcommon\Redis(array( $r = new phpcommon\Redis(array(
'host' => $redis_conf['host'], 'host' => $redis_conf['host'],
'port' => $redis_conf['port'], 'port' => $redis_conf['port'],