From e37a1a01ccc5afb7ac6267f626c74f71210a7340 Mon Sep 17 00:00:00 2001 From: wanghongjun <1445693971@qq.com> Date: Wed, 6 Aug 2025 17:34:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96ai=E5=B7=B2=E8=AF=BB=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E6=8E=A5=E5=8F=A32?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/enterprise/controller/Im.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/enterprise/controller/Im.php b/app/enterprise/controller/Im.php index 877b296..079f432 100644 --- a/app/enterprise/controller/Im.php +++ b/app/enterprise/controller/Im.php @@ -423,7 +423,7 @@ class Im extends BaseController } // 更新群里面我的所有未读消息为0 GroupUser::editGroupUser(['user_id' => $this->userInfo['user_id'], 'group_id' => $toContactId], ['unread' => 0]); - } else if($is_group==0) { + } else if($is_group==0 || $is_group==4) { $chat_identify = chat_identify($this->userInfo['user_id'], $to_user); // 更新我的未读消息为0 Message::update(['is_read' => 1], [['chat_identify', '=', $chat_identify], ['to_user', '=', $this->userInfo['user_id']]]); @@ -431,8 +431,6 @@ class Im extends BaseController wsSendMsg($to_user, 'readAll', ['toContactId' => $this->userInfo['user_id']]); } else if($is_group==2){ $chat_identify = $to_user; - } else if($is_group==4){ - $chat_identify = chat_identify($this->userInfo['user_id'], $to_user); } return $chat_identify; }