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
* @return mixed
+1 -4
View File
@@ -129,10 +129,7 @@ class Node extends HttpService
if (empty($dispatchParam)) {
$dispatchParam = [\request()];
}
if ($this->beforeAction()) {
return \aop($this->handler, $dispatchParam);
}
return response()->close(400);
return \aop($this->handler, $dispatchParam);
};
}