up. gateway 更多的代码和优化内容
This commit is contained in:
parent
67bbaecac6
commit
4ce1fceb3d
@ -22,8 +22,8 @@ class PutMessage
|
||||
public function __construct(string $ws_client_id, string $type, string $event, array $data = [])
|
||||
{
|
||||
$this->wsClientId = $ws_client_id;
|
||||
$this->type = WsTypeEnum::from($type);
|
||||
$this->event = WsEventEnum::from($event);
|
||||
$this->type = WsTypeEnum::tryFrom($type);
|
||||
$this->event = WsEventEnum::tryFrom($event);
|
||||
$this->data = $data;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user