From 4ce1fceb3dcb88cdee07b00a2ee1549a0d7f2cc1 Mon Sep 17 00:00:00 2001 From: v Date: Fri, 29 Aug 2025 22:03:59 +0800 Subject: [PATCH] =?UTF-8?q?up.=20gateway=20=E6=9B=B4=E5=A4=9A=E7=9A=84?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=E5=92=8C=E4=BC=98=E5=8C=96=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/entity/gateway/ws/PutMessage.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/entity/gateway/ws/PutMessage.php b/app/entity/gateway/ws/PutMessage.php index c9daf3c..b1ce1d4 100644 --- a/app/entity/gateway/ws/PutMessage.php +++ b/app/entity/gateway/ws/PutMessage.php @@ -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; }