From 237e172bd8992cea9c55219f09fa6406c7019fc1 Mon Sep 17 00:00:00 2001 From: gzydong <837215079@qq.com> Date: Thu, 20 Jan 2022 21:55:44 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E5=85=BC=E5=AE=B9=E5=BC=80=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Service/Message/FormatMessageService.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/Service/Message/FormatMessageService.php b/app/Service/Message/FormatMessageService.php index 50adb6f..96572b9 100644 --- a/app/Service/Message/FormatMessageService.php +++ b/app/Service/Message/FormatMessageService.php @@ -192,7 +192,10 @@ class FormatMessageService // 登录消息 case TalkMessageType::USER_LOGIN_MESSAGE: - $rows[$k]['login'] = $logins[$row['id']]; + if (isset($logins[$row['id']])) { + $rows[$k]['login'] = $logins[$row['id']]; + } + break; // 入群消息/退群消息