This commit is contained in:
2023-10-18 10:58:24 +08:00
parent 41f2e6a18f
commit 982e9d66bc
3 changed files with 5 additions and 3 deletions
+2
View File
@@ -98,6 +98,8 @@ class Handler implements RequestHandlerInterface
public function handle(ServerRequestInterface $request): ResponseInterface
{
$data = call_user_func($this->handler, ...$this->parameter);
/** 根据返回类型 */
return $this->format->call($data);
}