改名
This commit is contained in:
@@ -179,7 +179,9 @@ class Response extends HttpService
|
|||||||
*/
|
*/
|
||||||
private function parseData($context): mixed
|
private function parseData($context): mixed
|
||||||
{
|
{
|
||||||
if ($context === null) {
|
if (empty($context)) {
|
||||||
|
return $context;
|
||||||
|
}
|
||||||
if (isset($this->_format_maps[$this->format])) {
|
if (isset($this->_format_maps[$this->format])) {
|
||||||
$class['class'] = $this->_format_maps[$this->format];
|
$class['class'] = $this->_format_maps[$this->format];
|
||||||
} else {
|
} else {
|
||||||
@@ -188,8 +190,6 @@ class Response extends HttpService
|
|||||||
$format = Snowflake::createObject($class);
|
$format = Snowflake::createObject($class);
|
||||||
return $format->send($context)->getData();
|
return $format->send($context)->getData();
|
||||||
}
|
}
|
||||||
return $context;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param $result
|
* @param $result
|
||||||
@@ -228,7 +228,6 @@ class Response extends HttpService
|
|||||||
if (!swoole()->exist($response->fd)) {
|
if (!swoole()->exist($response->fd)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
var_dump($sendData);
|
|
||||||
if (is_array($sendData)) {
|
if (is_array($sendData)) {
|
||||||
$sendData = Json::encode($sendData);
|
$sendData = Json::encode($sendData);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user