mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-08 07:32:48 +08:00
修正
This commit is contained in:
@@ -120,7 +120,7 @@ class App
|
|||||||
// 请求缓存检查
|
// 请求缓存检查
|
||||||
$request->cache($config['request_cache'], $config['request_cache_expire'], $config['request_cache_except']);
|
$request->cache($config['request_cache'], $config['request_cache_expire'], $config['request_cache_except']);
|
||||||
|
|
||||||
$data = self::exec($dispatch,$config);
|
$data = self::exec($dispatch, $config);
|
||||||
} catch (HttpResponseException $exception) {
|
} catch (HttpResponseException $exception) {
|
||||||
$data = $exception->getResponse();
|
$data = $exception->getResponse();
|
||||||
}
|
}
|
||||||
@@ -266,8 +266,7 @@ class App
|
|||||||
if (method_exists($className, 'invoke')) {
|
if (method_exists($className, 'invoke')) {
|
||||||
$method = new \ReflectionMethod($className, 'invoke');
|
$method = new \ReflectionMethod($className, 'invoke');
|
||||||
if ($method->isPublic() && $method->isStatic()) {
|
if ($method->isPublic() && $method->isStatic()) {
|
||||||
$result = $className::invoke(Request::instance());
|
return $className::invoke(Request::instance());
|
||||||
continue;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$result = method_exists($className, 'instance') ? $className::instance() : new $className;
|
$result = method_exists($className, 'instance') ? $className::instance() : new $className;
|
||||||
|
|||||||
Reference in New Issue
Block a user