wupengfei 2 年之前
父节点
当前提交
2dcc67827e
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      thinkphp/library/think/Hook.php

+ 1 - 1
thinkphp/library/think/Hook.php

@@ -90,7 +90,6 @@ class Hook
     public static function listen($tag, &$params = null, $extra = null, $once = false)
     {
         $results = [];
-        var_dump(static::get($tag));
         foreach (static::get($tag) as $key => $name) {
             $results[$key] = self::exec($name, $tag, $params, $extra);
 
@@ -135,6 +134,7 @@ class Hook
             $obj    = new $class();
             $method = ($tag && is_callable([$obj, $method])) ? $method : 'run';
             $result = $obj->$method($params, $extra);
+            var_dump($result);
         }
 
         if (App::$debug) {