This commit is contained in:
2021-03-04 00:42:46 +08:00
parent 37979aa20c
commit cf1700dabb
2 changed files with 1 additions and 1 deletions
-1
View File
@@ -73,7 +73,6 @@ class Middleware
[$controller, $action] = $node->handler;
$attributes = Snowflake::app()->getAttributes();
$annotation = $attributes->getMethods(get_class($controller), $action);
var_dump($annotation);
if (empty($annotation)) {
return;
}
+1
View File
@@ -475,6 +475,7 @@ class Node extends HttpService
// return $this->runWith(...func_get_args());
// }
if (empty($this->restructure()->callback)) {
var_dump('404');
return Json::to(404, $this->errorMsg());
}
return $this->runWith(...func_get_args());