diff --git a/library/think/Route.php b/library/think/Route.php index 365a2d4a..1b6a08c7 100644 --- a/library/think/Route.php +++ b/library/think/Route.php @@ -460,7 +460,7 @@ class Route || (isset($option['ext']) && false === stripos($option['ext'], __EXT__)) // 伪静态后缀检测 || (isset($option['domain']) && !in_array($option['domain'], [$_SERVER['HTTP_HOST'], self::$subDomain])) // 域名检测 || (!empty($option['https']) && !self::isSsl()) // https检测 - || (!empty($option['behavior']) && false === Hook::exec($option['behavior'])) // 行为检测 + || (!empty($option['before_behavior']) && false === Hook::exec($option['before_behavior'])) // 行为检测 || (!empty($option['callback']) && is_callable($option['callback']) && false === call_user_func($option['callback'])) // 自定义检测 ) { return false;