改名
This commit is contained in:
@@ -213,10 +213,11 @@ class Response extends HttpService
|
||||
if (empty($this->endData) || is_string($this->endData)) {
|
||||
return $this->endData;
|
||||
}
|
||||
|
||||
$class = Response::FORMAT_MAPS[$this->format] ?? HtmlFormatter::class;
|
||||
|
||||
return \di($class)->send($this->endData)->getData();
|
||||
if (!($this->endData instanceof Response)) {
|
||||
$class = Response::FORMAT_MAPS[$this->format] ?? HtmlFormatter::class;
|
||||
return \di($class)->send($this->endData)->getData();
|
||||
}
|
||||
return $this->endData->getContent();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user