时间:2021-07-01 10:21:17 帮助过:22人阅读
private static function parse_conf(&$setting_config){ $nc_config = $GLOBALS['config']; if(is_array($nc_config['db']['slave']) && !empty($nc_config['db']['slave'])){ $dbslave = $nc_config['db']['slave']; $sid = array_rand($dbslave); $nc_config['db']['slave'] = $dbslave[$sid]; }else{ $nc_config['db']['slave'] = $nc_config['db'][1]; } $nc_config['db']['master'] = $nc_config['db'][1]; $setting_config = $nc_config; $setting = ($setting = rkcache('setting')) ? $setting : rkcache('setting',true); $setting['shopnc_version'] = 'E-Mall'; $setting_config = array_merge_recursive($setting,$nc_config); }
解析配置..
解析配置..
解析配置..