application/core/manage/logic/ConfigLogic.php
public function processConfig($config)
    {
        $var_list = $this->getVariableList();
        foreach ($config as $co => $vo) {
            if (is_array($vo)) {
                $config[$co] = $this->processConfig($vo);
            } else {
                $config[$co] = str_replace($var_list[0], $var_list[1], $config[$co]);
            }
        }
        return $config;
    }
public function processConfig($config)
    {
        $var_list = $this->getVariableList();
        foreach ($config as $co => $vo) {
            if (is_array($vo)) {
                $config[$co] = $this->processConfig($vo);
            } else {
                $config[$co] = str_replace($var_list[0], $var_list[1], $config[$co]);
            }
        }
        return $config;
    }
处理配置

@param array $config
@return array