stanley-king 1 年之前
父节点
当前提交
90fbbf1448
共有 1 个文件被更改,包括 6 次插入4 次删除
  1. 6 4
      core/framework/core/base.php

+ 6 - 4
core/framework/core/base.php

@@ -183,13 +183,15 @@ final class Base
 
 		if (class_exists($class_name))
 		{
-			$main = new $class_name();
-			$function = $_GET['op'].'Op';
+            $function = $_GET['op'].'Op';
+
+            Log::record("Base::control 3 0", Log::DEBUG);
             Log::record("act={$class_name},op={$function}",Log::DEBUG);
 
-			if (method_exists($main,$function)){                       
-				$main->$function();
+			$main = new $class_name();
+			if (method_exists($main,$function)){
                 Log::record("Base::control 3 1", Log::DEBUG);
+				$main->$function();
 			} elseif (method_exists($main,'indexOp')) {
                 Log::record("Base::control 3 2", Log::DEBUG);
                 $main->indexOp();