remove UnitTestController.class.php
This commit is contained in:
parent
98cb210dc8
commit
e327bc9687
@ -1,54 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
class UnitTestController extends BaseController {
|
|
||||||
|
|
||||||
function __construct()
|
|
||||||
{
|
|
||||||
if (SERVER_ENV == _ONLINE) {
|
|
||||||
die("can't create UnitTestController");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public function getEquipConf()
|
|
||||||
{
|
|
||||||
require_once 'metatable/equip.php';
|
|
||||||
echo json_encode(metatable\getEquipConf());
|
|
||||||
}
|
|
||||||
|
|
||||||
public function getEquipById()
|
|
||||||
{
|
|
||||||
require_once 'metatable/equip.php';
|
|
||||||
echo json_encode(metatable\getEquipById($_REQUEST['equip_id']));
|
|
||||||
}
|
|
||||||
|
|
||||||
public function getParameterConf()
|
|
||||||
{
|
|
||||||
require_once 'metatable/parameter.php';
|
|
||||||
echo json_encode(metatable\getParameterConf());
|
|
||||||
}
|
|
||||||
|
|
||||||
public function getParameterByName()
|
|
||||||
{
|
|
||||||
require_once 'metatable/parameter.php';
|
|
||||||
echo json_encode(metatable\getParameterByName($_REQUEST['param_name']));
|
|
||||||
}
|
|
||||||
|
|
||||||
public function shopRandGoods()
|
|
||||||
{
|
|
||||||
require_once 'metatable/shop.php';
|
|
||||||
echo json_encode(metatable\randGoods(
|
|
||||||
metatable\getShopById($_REQUEST['shop_id']),
|
|
||||||
array(
|
|
||||||
'102' => 1,
|
|
||||||
'103' => 1,
|
|
||||||
'104' => 1
|
|
||||||
)
|
|
||||||
));
|
|
||||||
}
|
|
||||||
public function testController()
|
|
||||||
{
|
|
||||||
error_log("testControllerFromUnitTestColler");
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
Loading…
x
Reference in New Issue
Block a user