改名
This commit is contained in:
@@ -29,7 +29,7 @@ class HttpParams
|
||||
private ?array $_gets = [];
|
||||
|
||||
|
||||
/** @var array|null */
|
||||
/** @var array|null */
|
||||
private ?array $_posts = [];
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@ class HttpParams
|
||||
private ?array $_files = [];
|
||||
|
||||
|
||||
/** @var mixed|array */
|
||||
/** @var mixed|array */
|
||||
private mixed $_rawContent = [];
|
||||
|
||||
|
||||
@@ -58,14 +58,17 @@ class HttpParams
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array|null $data
|
||||
* @param mixed $data
|
||||
* 批量添加数据
|
||||
*/
|
||||
public function setPosts(?array $data)
|
||||
public function setPosts(mixed $data)
|
||||
{
|
||||
if (!is_array($data)) {
|
||||
return;
|
||||
}
|
||||
if (is_object($data)) {
|
||||
$data = get_object_vars($data);
|
||||
}
|
||||
foreach ($data as $key => $vla) {
|
||||
$this->_posts[$key] = $vla;
|
||||
}
|
||||
|
||||
@@ -91,9 +91,6 @@ class HTTPServerListener extends Abstracts\Server
|
||||
public function onRequest(Request $request, Response $response)
|
||||
{
|
||||
try {
|
||||
// defer(fn() => fire(Event::SYSTEM_RESOURCE_RELEASES));
|
||||
// ApplicationStore::getStore()->waite();
|
||||
|
||||
/** @var \HttpServer\Http\Response $sResponse */
|
||||
[$sRequest, $sResponse] = $this->request($request, $response);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user