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