改名
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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);
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user