From 1934debdb21b5fbe5500f14d8db4d3e5d08f423f Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Mon, 17 Aug 2020 13:45:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E9=85=8D=E7=BD=AE=E8=A1=A8?= =?UTF-8?q?=E8=AF=BB=E5=8F=96=E7=A4=BA=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- webapp/bootstrap/init.php | 5 +-- .../controller/UnitTestController.class.php | 25 +++++++++++ webapp/metatable/equip.php | 42 +++++++++++++++++++ 3 files changed, 69 insertions(+), 3 deletions(-) create mode 100644 webapp/controller/UnitTestController.class.php create mode 100644 webapp/metatable/equip.php 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..0f28385 --- /dev/null +++ b/webapp/controller/UnitTestController.class.php @@ -0,0 +1,25 @@ +