From 28cf17bbf24715513802de8a5596cfa4a503a396 Mon Sep 17 00:00:00 2001 From: v Date: Fri, 29 Aug 2025 23:33:36 +0800 Subject: [PATCH] =?UTF-8?q?up.=20=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=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, 3 insertions(+), 1 deletion(-) diff --git a/app/entity/gateway/ws/PutMessage.php b/app/entity/gateway/ws/PutMessage.php index 3c11209..38ab1f1 100644 --- a/app/entity/gateway/ws/PutMessage.php +++ b/app/entity/gateway/ws/PutMessage.php @@ -23,9 +23,11 @@ class PutMessage public function __construct(string $ws_client_id, string $type, string $event, array $data = []) { $this->wsClientId = $ws_client_id; - if ($type == MessageType::System) { + if ($type == MessageType::System->value) { $this->type = MessageType::System; $this->event = SystemEnum::tryFrom($event); + }else{ + $this->type = null; } $this->data = $data; }