mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-05 22:52:49 +08:00
改进异常语言包的加载
This commit is contained in:
@@ -926,8 +926,7 @@ class Route
|
||||
if ($option['after_behavior'] instanceof \Closure) {
|
||||
$result = call_user_func_array($option['after_behavior'], [$route]);
|
||||
} else {
|
||||
$behaviors = (array)$option['after_behavior'];
|
||||
foreach($behaviors as $behavior){
|
||||
foreach((array)$option['after_behavior'] as $behavior){
|
||||
$result = Hook::exec($behavior, '', $route);
|
||||
if (!is_null($result)) {
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user