dianzan
dianzan copied to clipboard
miss redis class
$config = require ZAN_APP . 'config/config.php';
$this->logName = $config['log'];
$mysqlConfig = $config['mysql'];
$redisConfig = $config['redis'];
$dbTable = $config['dbTable'];
$this->mysqli = new Db($mysqlConfig);
$this->post_set = $redisConfig['post_set'] ? $redisConfig['post_set'] : 'post_set';
$redis_port = $redisConfig['port'] ? $redisConfig['port'] : 6379;
$this->list_post = 'list_post';
$this->redis = new Redis(); //找不到Redis类
$this->redis->connect($redisConfig['host'], $redis_port);
$this->form_post_user = $dbTable['form_post_user'] ? $dbTable['form_post_user'] : 'post_user';
$this->form_post_set = $dbTable['form_post_set'] ? $dbTable['form_post_set'] : 'post_set';