diff --git a/webapp/bootstrap/init.php b/webapp/bootstrap/init.php index dd88b9d..1e02ee2 100644 --- a/webapp/bootstrap/init.php +++ b/webapp/bootstrap/init.php @@ -94,8 +94,7 @@ define('EQUIPREWARD_PARAMETER', 152); //结算比例 define('DIAMONDTOCOIN_NUM', 153); //钻石换金币 require 'config_loader.php'; -function needSpecConfig($channel) +function getConfigBaseDir() { - return $channel == 6001; + return '../res/'; } - diff --git a/webapp/controller/UnitTestController.class.php b/webapp/controller/UnitTestController.class.php new file mode 100644 index 0000000..5f14315 --- /dev/null +++ b/webapp/controller/UnitTestController.class.php @@ -0,0 +1,37 @@ + $val) { + if ($val['param_name'] == $param_name) { + return $val; + } + } + return null; +} + +function _internalGetParameterConf() +{ + global $g_parameter_table; + if (!$g_parameter_table) { + $g_parameter_table = require(getConfigBaseDir() . 'parameter@parameter.php'); + } + return $g_parameter_table; +}