dianzan icon indicating copy to clipboard operation
dianzan copied to clipboard

miss redis class

Open luckywjc2008 opened this issue 1 year ago • 0 comments

    $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';

luckywjc2008 avatar Dec 05 '23 08:12 luckywjc2008