改名
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
|
* @param $name
|
||||||
* @return mixed
|
* @return mixed
|
||||||
|
|||||||
@@ -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);
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user