/** * 执行接口 */ private function execute() { if ($this->action === null) { return; } if ($this->getMime() === 'none') { $this->action->quiet(); } if ($this->checkPermission($this->ruler[4]) === false) { return; } if (\call_user_func_array([$this->action, 'before'], [$this->method, $this->param]) === false) { return; } $result = \call_user_func_array([$this->action, $this->method], $this->param); if (\is_array($result)) { if (isset($result[0]) && \is_int($result[0])) { $this->action->status($result[0], array_slice($result, 1)); } $this->action->outMass($result); } if ($this->applyFilter() === false) { return; } if (\call_user_func_array([$this->action, 'after'], [$this->method, $this->param]) === false) { return; } Action::setIsRunComplete(true); }