code: public function getConfig()
      {
          $config = Cache::get(self::CACHE_KEY);
          if (empty($config)) {
              $list = $this->model->select();
              $config = [];
              foreach ($list as $vo) {
                  switch ($vo['config_type']) {
                      case 'checkbox':
                      case 'array':
                          $vo['config_value'] = empty($vo['config_value']) ? [] : @json_decode($vo['config_value'], true);
                          break;
                  }
                  $config[$vo['config_name']] = $vo['config_value'];
              }
              
              // 处理变量
              $config = $this->processConfig($config);
              
              Cache::set(self::CACHE_KEY, $config);
          }
          return $config;
      }
docs: 获取配置
  
  @return array