Commit 8d8958ee authored by pengfei's avatar pengfei

update wx group chat

parent 3f5e6512
...@@ -94,7 +94,10 @@ class GroupChatService ...@@ -94,7 +94,10 @@ class GroupChatService
$insertMember = []; $insertMember = [];
$existUserIds = $this->getWxGroupChatUserIds($chatId, array_column($memberList, 'userid')); $existUserIds = $this->getWxGroupChatUserIds($chatId, array_column($memberList, 'userid'));
// 重置将该群成员状态 // 重置将该群成员状态
WxGroupChatUser::updateRecord(['status' => WxGroupChatUser::STATUS_LEAVE], ['chat_id' => $chatId]); WxGroupChatUser::updateRecord(
['status' => WxGroupChatUser::STATUS_LEAVE],
['chat_id' => $chatId, 'status' => WxGroupChatUser::STATUS_NORMAL]
);
foreach ($memberList as $member) { foreach ($memberList as $member) {
$member = $this->getFormatGroupChatUser($chatId, $member); $member = $this->getFormatGroupChatUser($chatId, $member);
if (isset($existUserIds[$member['user_id']])) { if (isset($existUserIds[$member['user_id']])) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment