改名
This commit is contained in:
@@ -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)) {
|
if (!is_array($data)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (is_object($data)) {
|
||||||
|
$data = get_object_vars($data);
|
||||||
|
}
|
||||||
foreach ($data as $key => $vla) {
|
foreach ($data as $key => $vla) {
|
||||||
$this->_posts[$key] = $vla;
|
$this->_posts[$key] = $vla;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -91,9 +91,6 @@ class HTTPServerListener extends Abstracts\Server
|
|||||||
public function onRequest(Request $request, Response $response)
|
public function onRequest(Request $request, Response $response)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
// defer(fn() => fire(Event::SYSTEM_RESOURCE_RELEASES));
|
|
||||||
// ApplicationStore::getStore()->waite();
|
|
||||||
|
|
||||||
/** @var \HttpServer\Http\Response $sResponse */
|
/** @var \HttpServer\Http\Response $sResponse */
|
||||||
[$sRequest, $sResponse] = $this->request($request, $response);
|
[$sRequest, $sResponse] = $this->request($request, $response);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user