改名
This commit is contained in:
@@ -73,7 +73,6 @@ class Middleware
|
|||||||
[$controller, $action] = $node->handler;
|
[$controller, $action] = $node->handler;
|
||||||
$attributes = Snowflake::app()->getAttributes();
|
$attributes = Snowflake::app()->getAttributes();
|
||||||
$annotation = $attributes->getMethods(get_class($controller), $action);
|
$annotation = $attributes->getMethods(get_class($controller), $action);
|
||||||
var_dump($annotation);
|
|
||||||
if (empty($annotation)) {
|
if (empty($annotation)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -475,6 +475,7 @@ class Node extends HttpService
|
|||||||
// return $this->runWith(...func_get_args());
|
// return $this->runWith(...func_get_args());
|
||||||
// }
|
// }
|
||||||
if (empty($this->restructure()->callback)) {
|
if (empty($this->restructure()->callback)) {
|
||||||
|
var_dump('404');
|
||||||
return Json::to(404, $this->errorMsg());
|
return Json::to(404, $this->errorMsg());
|
||||||
}
|
}
|
||||||
return $this->runWith(...func_get_args());
|
return $this->runWith(...func_get_args());
|
||||||
|
|||||||
Reference in New Issue
Block a user