up. gateway 更多的代码和优化内容

This commit is contained in:
扶桑花间 2025-08-29 22:03:59 +08:00
parent 67bbaecac6
commit 4ce1fceb3d

View File

@ -22,8 +22,8 @@ class PutMessage
public function __construct(string $ws_client_id, string $type, string $event, array $data = []) public function __construct(string $ws_client_id, string $type, string $event, array $data = [])
{ {
$this->wsClientId = $ws_client_id; $this->wsClientId = $ws_client_id;
$this->type = WsTypeEnum::from($type); $this->type = WsTypeEnum::tryFrom($type);
$this->event = WsEventEnum::from($event); $this->event = WsEventEnum::tryFrom($event);
$this->data = $data; $this->data = $data;
} }