This commit is contained in:
aozhiwei 2021-01-04 13:40:33 +08:00
parent 1247efbd8d
commit 0512935c70

View File

@ -27,7 +27,7 @@ try{
$c = $_REQUEST['c'];
$a = $_REQUEST['a'];
$classname = $c .'Controller';
$obj = eval('return (new $classname())->$a();');
$obj = eval('$obj = new $classname(); $obj->handlePre(); $obj->$a(); $obj->handlePost();');
} catch (Exception $e){
echo($e);
}