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