改名
This commit is contained in:
@@ -21,8 +21,8 @@ class Result
|
|||||||
public $code;
|
public $code;
|
||||||
public $message;
|
public $message;
|
||||||
public int $count = 0;
|
public int $count = 0;
|
||||||
public array|string $data;
|
public ?array $data;
|
||||||
public array $header;
|
public ?array $header;
|
||||||
public int $httpStatus = 200;
|
public int $httpStatus = 200;
|
||||||
|
|
||||||
public int $startTime = 0;
|
public int $startTime = 0;
|
||||||
|
|||||||
+11
-3
@@ -88,14 +88,22 @@ class Server extends Application
|
|||||||
$annotation->register('websocket', AWebsocket::class);
|
$annotation->register('websocket', AWebsocket::class);
|
||||||
|
|
||||||
$this->enableCoroutine((bool)Config::get('settings.enable_coroutine'));
|
$this->enableCoroutine((bool)Config::get('settings.enable_coroutine'));
|
||||||
foreach ($this->sortServers($configs) as $server) {
|
|
||||||
|
$this->orders($configs);
|
||||||
|
$this->onProcessListener();
|
||||||
|
return $this->getServer();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
private function orders($configs)
|
||||||
|
{
|
||||||
|
$servers = $this->sortServers($configs);
|
||||||
|
foreach ($servers as $server) {
|
||||||
$this->create($server);
|
$this->create($server);
|
||||||
if (!$this->baseServer) {
|
if (!$this->baseServer) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$this->onProcessListener();
|
|
||||||
return $this->getServer();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user