From 0512935c700c87ba8964b851ae4efadd004e0159 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Mon, 4 Jan 2021 13:40:33 +0800 Subject: [PATCH] 1 --- webapp/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webapp/index.php b/webapp/index.php index f06f3d1..cfd7b57 100644 --- a/webapp/index.php +++ b/webapp/index.php @@ -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); }