改名
This commit is contained in:
@@ -48,7 +48,7 @@ class OnPacket extends Callback
|
||||
$dispatch = $node->dispatch();
|
||||
if (!is_string($dispatch)) $dispatch = Json::encode($dispatch);
|
||||
if (empty($dispatch)) {
|
||||
return true;
|
||||
$dispatch = Json::encode(['state' => 0, 'message' => 'ok']);
|
||||
}
|
||||
return $server->sendto($host, $port, $dispatch);
|
||||
} catch (\Throwable $exception) {
|
||||
|
||||
Reference in New Issue
Block a user