From 3d966c69edc7a7fb30baff71fe253e3bcbe09470 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Thu, 25 Jul 2024 11:30:20 +0800 Subject: [PATCH] 1 --- webapp/index.php | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/webapp/index.php b/webapp/index.php index e7dfc0bf..98e824e9 100644 --- a/webapp/index.php +++ b/webapp/index.php @@ -42,8 +42,16 @@ try{ $classname = $c .'Controller'; $beginTick = phpcommon\getTickCount(); $obj = eval('return new $classname();'); - $method = new ReflectionMethod($classname, $a); - $methodS = new ReflectionMethod($classname, $a . 'S'); + $method = null; + try { + $method = new ReflectionMethod($classname, $a); + } catch (Exception $e) { + } + $methodS = null; + try { + $methodS = new ReflectionMethod($classname, $a . 'S'); + } catch (Exception $e){ + } if (isValidActionAction($a, $method)) { $obj->_handlePre(); $method->invoke($obj);