This commit is contained in:
2021-04-26 12:47:15 +08:00
parent 3dbb95e627
commit d3bba3c76f
2 changed files with 1 additions and 14 deletions
-10
View File
@@ -74,16 +74,6 @@ class Controller extends HttpService
} }
/**
* @param Request $request
* @return bool
*/
public function beforeAction(Request $request): bool
{
return true;
}
/** /**
* @param $name * @param $name
* @return mixed * @return mixed
-3
View File
@@ -129,10 +129,7 @@ class Node extends HttpService
if (empty($dispatchParam)) { if (empty($dispatchParam)) {
$dispatchParam = [\request()]; $dispatchParam = [\request()];
} }
if ($this->beforeAction()) {
return \aop($this->handler, $dispatchParam); return \aop($this->handler, $dispatchParam);
}
return response()->close(400);
}; };
} }