This commit is contained in:
2021-03-04 00:47:56 +08:00
parent 1640ccf097
commit ec1f47d9ef
5 changed files with 4 additions and 13 deletions
+3 -4
View File
@@ -471,11 +471,10 @@ class Node extends HttpService
*/
public function dispatch(): mixed
{
// if (!empty($this->callback)) {
// return $this->runWith(...func_get_args());
// }
if (!empty($this->callback)) {
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());