改名
This commit is contained in:
@@ -159,6 +159,7 @@ class Response extends HttpService
|
|||||||
$sendData = $this->parseData($context);
|
$sendData = $this->parseData($context);
|
||||||
|
|
||||||
$response = Context::getContext('response');
|
$response = Context::getContext('response');
|
||||||
|
var_dump($response);
|
||||||
if ($response instanceof SResponse) {
|
if ($response instanceof SResponse) {
|
||||||
$this->sendData($response, $sendData, $statusCode);
|
$this->sendData($response, $sendData, $statusCode);
|
||||||
} else {
|
} else {
|
||||||
@@ -244,7 +245,6 @@ class Response extends HttpService
|
|||||||
$response->header('Content-Type', $this->getContentType());
|
$response->header('Content-Type', $this->getContentType());
|
||||||
$response->header('Run-Time', $this->getRuntime());
|
$response->header('Run-Time', $this->getRuntime());
|
||||||
|
|
||||||
var_dump($this->headers);
|
|
||||||
if (empty($this->headers) || !is_array($this->headers)) {
|
if (empty($this->headers) || !is_array($this->headers)) {
|
||||||
return $response;
|
return $response;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user