From 6e99a88a857ae6654bedb496a2fdfb1ac5b5edfb Mon Sep 17 00:00:00 2001 From: gzydong <837215079@qq.com> Date: Sat, 10 Jul 2021 00:25:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Service/GroupService.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Service/GroupService.php b/app/Service/GroupService.php index 1c0251a..171911c 100644 --- a/app/Service/GroupService.php +++ b/app/Service/GroupService.php @@ -106,15 +106,15 @@ class GroupService extends BaseService ]); // 加入聊天室 - foreach ($friend_ids as $uid) { - SocketRoom::getInstance()->addRoomMember(strval($data['group_id']), $uid); + foreach ($friend_ids as $value) { + SocketRoom::getInstance()->addRoomMember(strval($group->id), strval($value)); } MessageProducer::publish(MessageProducer::create(TalkMessageEvent::EVENT_TALK, [ 'sender_id' => $user_id, 'receiver_id' => $group->id, 'talk_type' => TalkMode::GROUP_CHAT, - 'record_id' => (int)$data['record_id'] + 'record_id' => $result->id ])); return [true, $group];